Target.fromJson constructor

Target.fromJson(
  1. 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,
        expectedCount: json_.containsKey('expectedCount')
            ? json_['expectedCount'] as core.int
            : 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,
      );