Value.fromJson constructor

Value.fromJson(
  1. Map _json
)

Implementation

Value.fromJson(core.Map _json) {
  if (_json.containsKey("arrayValue")) {
    arrayValue = new ArrayValue.fromJson(_json["arrayValue"]);
  }
  if (_json.containsKey("blobValue")) {
    blobValue = _json["blobValue"];
  }
  if (_json.containsKey("booleanValue")) {
    booleanValue = _json["booleanValue"];
  }
  if (_json.containsKey("doubleValue")) {
    doubleValue = _json["doubleValue"].toDouble();
  }
  if (_json.containsKey("entityValue")) {
    entityValue = new Entity.fromJson(_json["entityValue"]);
  }
  if (_json.containsKey("excludeFromIndexes")) {
    excludeFromIndexes = _json["excludeFromIndexes"];
  }
  if (_json.containsKey("geoPointValue")) {
    geoPointValue = new LatLng.fromJson(_json["geoPointValue"]);
  }
  if (_json.containsKey("integerValue")) {
    integerValue = _json["integerValue"];
  }
  if (_json.containsKey("keyValue")) {
    keyValue = new Key.fromJson(_json["keyValue"]);
  }
  if (_json.containsKey("meaning")) {
    meaning = _json["meaning"];
  }
  if (_json.containsKey("nullValue")) {
    nullValue = _json["nullValue"];
  }
  if (_json.containsKey("stringValue")) {
    stringValue = _json["stringValue"];
  }
  if (_json.containsKey("timestampValue")) {
    timestampValue = _json["timestampValue"];
  }
}