fix: Fix type cast to fix test in matrix-fhir-dart-sdk
This commit is contained in:
parent
3dbcc120e5
commit
3bd36aa19f
|
|
@ -45,7 +45,7 @@ class SyncUpdate {
|
||||||
});
|
});
|
||||||
|
|
||||||
SyncUpdate.fromJson(Map<String, Object?> json)
|
SyncUpdate.fromJson(Map<String, Object?> json)
|
||||||
: nextBatch = json['next_batch'] as String,
|
: nextBatch = json.tryGet<String>('next_batch') ?? '',
|
||||||
rooms = (() {
|
rooms = (() {
|
||||||
final temp = json.tryGetMap<String, Object?>('rooms');
|
final temp = json.tryGetMap<String, Object?>('rooms');
|
||||||
return temp != null ? RoomsUpdate.fromJson(temp) : null;
|
return temp != null ? RoomsUpdate.fromJson(temp) : null;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue