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,
        booleanValue: json_.containsKey('booleanValue')
            ? json_['booleanValue'] as core.bool
            : null,
        bytesValue: json_.containsKey('bytesValue')
            ? json_['bytesValue'] as core.String
            : null,
        doubleValue: json_.containsKey('doubleValue')
            ? (json_['doubleValue'] as core.num).toDouble()
            : 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,
        mapValue: json_.containsKey('mapValue')
            ? MapValue.fromJson(
                json_['mapValue'] as core.Map<core.String, core.dynamic>)
            : null,
        nullValue: json_.containsKey('nullValue') ? 'NULL_VALUE' : null,
        referenceValue: json_.containsKey('referenceValue')
            ? json_['referenceValue'] as core.String
            : null,
        stringValue: json_.containsKey('stringValue')
            ? json_['stringValue'] as core.String
            : null,
        timestampValue: json_.containsKey('timestampValue')
            ? json_['timestampValue'] as core.String
            : null,
      );