diff --git a/lib/matrix_api/model/one_time_keys_claim_response.dart b/lib/matrix_api/model/one_time_keys_claim_response.dart index 501fd48..7834211 100644 --- a/lib/matrix_api/model/one_time_keys_claim_response.dart +++ b/lib/matrix_api/model/one_time_keys_claim_response.dart @@ -21,7 +21,7 @@ class OneTimeKeysClaimResponse { Map> oneTimeKeys; OneTimeKeysClaimResponse.fromJson(Map json) { - failures = Map.from(json['failures']); + failures = Map.from(json['failures'] ?? {}); oneTimeKeys = Map>.from(json['one_time_keys']); }