Value.fromJson constructor
Value.fromJson(
- 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,
);