LookupResponse.fromJson constructor

LookupResponse.fromJson(
  1. Map json_
)

Implementation

LookupResponse.fromJson(core.Map json_)
    : this(
        deferred: json_.containsKey('deferred')
            ? (json_['deferred'] as core.List)
                .map((value) => Key.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        found: json_.containsKey('found')
            ? (json_['found'] as core.List)
                .map((value) => EntityResult.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        missing: json_.containsKey('missing')
            ? (json_['missing'] as core.List)
                .map((value) => EntityResult.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        readTime: json_.containsKey('readTime')
            ? json_['readTime'] as core.String
            : null,
        transaction: json_.containsKey('transaction')
            ? json_['transaction'] as core.String
            : null,
      );