toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  final failures = this.failures;
  return {
    if (failures != null) 'failures': failures.map(MapEntry.new),
    'one_time_keys':
        oneTimeKeys.map((k, v) => MapEntry(k, v.map(MapEntry.new))),
  };
}