DocumentChange.fromJson constructor

DocumentChange.fromJson(
  1. 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,
      );