fix: one itme keys response failure may be null
This commit is contained in:
parent
8908f33393
commit
9632d68b92
|
@ -21,7 +21,7 @@ class OneTimeKeysClaimResponse {
|
||||||
Map<String, Map<String, dynamic>> oneTimeKeys;
|
Map<String, Map<String, dynamic>> oneTimeKeys;
|
||||||
|
|
||||||
OneTimeKeysClaimResponse.fromJson(Map<String, dynamic> json) {
|
OneTimeKeysClaimResponse.fromJson(Map<String, dynamic> json) {
|
||||||
failures = Map<String, dynamic>.from(json['failures']);
|
failures = Map<String, dynamic>.from(json['failures'] ?? {});
|
||||||
oneTimeKeys = Map<String, Map<String, dynamic>>.from(json['one_time_keys']);
|
oneTimeKeys = Map<String, Map<String, dynamic>>.from(json['one_time_keys']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue