TargetChange.fromJson constructor

TargetChange.fromJson(
  1. Map _json
)

Implementation

TargetChange.fromJson(core.Map _json)
    : this(
        cause: _json.containsKey('cause')
            ? Status.fromJson(
                _json['cause'] as core.Map<core.String, core.dynamic>)
            : null,
        readTime: _json.containsKey('readTime')
            ? _json['readTime'] as core.String
            : null,
        resumeToken: _json.containsKey('resumeToken')
            ? _json['resumeToken'] as core.String
            : null,
        targetChangeType: _json.containsKey('targetChangeType')
            ? _json['targetChangeType'] as core.String
            : null,
        targetIds: _json.containsKey('targetIds')
            ? (_json['targetIds'] as core.List)
                .map((value) => value as core.int)
                .toList()
            : null,
      );