Target.fromJson constructor
Target.fromJson(
- Map _json
Implementation
Target.fromJson(core.Map _json)
: this(
documents: _json.containsKey('documents')
? DocumentsTarget.fromJson(
_json['documents'] as core.Map<core.String, core.dynamic>)
: null,
once: _json.containsKey('once') ? _json['once'] as core.bool : null,
query: _json.containsKey('query')
? QueryTarget.fromJson(
_json['query'] 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,
targetId: _json.containsKey('targetId')
? _json['targetId'] as core.int
: null,
);