Value.fromJson constructor

Value.fromJson(Map _json)

Implementation

Value.fromJson(core.Map _json) {
  if (_json.containsKey("arrayValue")) {
    arrayValue = new ArrayValue.fromJson(_json["arrayValue"]);
  }
  if (_json.containsKey("booleanValue")) {
    booleanValue = _json["booleanValue"];
  }
  if (_json.containsKey("bytesValue")) {
    bytesValue = _json["bytesValue"];
  }
  if (_json.containsKey("doubleValue")) {
    doubleValue = _json["doubleValue"].toDouble();
  }
  if (_json.containsKey("geoPointValue")) {
    geoPointValue = new LatLng.fromJson(_json["geoPointValue"]);
  }
  if (_json.containsKey("integerValue")) {
    integerValue = _json["integerValue"];
  }
  if (_json.containsKey("mapValue")) {
    mapValue = new MapValue.fromJson(_json["mapValue"]);
  }
  if (_json.containsKey("nullValue")) {
    nullValue = _json["nullValue"];
  }
  if (_json.containsKey("referenceValue")) {
    referenceValue = _json["referenceValue"];
  }
  if (_json.containsKey("stringValue")) {
    stringValue = _json["stringValue"];
  }
  if (_json.containsKey("timestampValue")) {
    timestampValue = _json["timestampValue"];
  }
}