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