Value.fromJson constructor

Value.fromJson(
  1. Map json_
)

Implementation

Value.fromJson(core.Map json_)
    : this(
        arrayValue: json_.containsKey('arrayValue')
            ? ArrayValue.fromJson(
                json_['arrayValue'] as core.Map<core.String, core.dynamic>)
            : null,
        blobValue: json_.containsKey('blobValue')
            ? json_['blobValue'] as core.String
            : null,
        booleanValue: json_.containsKey('booleanValue')
            ? json_['booleanValue'] as core.bool
            : null,
        doubleValue: json_.containsKey('doubleValue')
            ? (json_['doubleValue'] as core.num).toDouble()
            : null,
        entityValue: json_.containsKey('entityValue')
            ? Entity.fromJson(
                json_['entityValue'] as core.Map<core.String, core.dynamic>)
            : null,
        excludeFromIndexes: json_.containsKey('excludeFromIndexes')
            ? json_['excludeFromIndexes'] as core.bool
            : null,
        geoPointValue: json_.containsKey('geoPointValue')
            ? LatLng.fromJson(
                json_['geoPointValue'] as core.Map<core.String, core.dynamic>)
            : null,
        integerValue: json_.containsKey('integerValue')
            ? json_['integerValue'] as core.String
            : null,
        keyValue: json_.containsKey('keyValue')
            ? Key.fromJson(
                json_['keyValue'] as core.Map<core.String, core.dynamic>)
            : null,
        meaning: json_.containsKey('meaning')
            ? json_['meaning'] as core.int
            : null,
        nullValue: json_.containsKey('nullValue') ? 'NULL_VALUE' : null,
        stringValue: json_.containsKey('stringValue')
            ? json_['stringValue'] as core.String
            : null,
        timestampValue: json_.containsKey('timestampValue')
            ? json_['timestampValue'] as core.String
            : null,
      );