DocumentChange.fromJson constructor
DocumentChange.fromJson(
- Map json_
Implementation
DocumentChange.fromJson(core.Map json_)
: this(
document: json_.containsKey('document')
? Document.fromJson(
json_['document'] as core.Map<core.String, core.dynamic>)
: null,
removedTargetIds: json_.containsKey('removedTargetIds')
? (json_['removedTargetIds'] as core.List)
.map((value) => value as core.int)
.toList()
: null,
targetIds: json_.containsKey('targetIds')
? (json_['targetIds'] as core.List)
.map((value) => value as core.int)
.toList()
: null,
);