toJson method

Map<String, Object> toJson ()

Implementation

core.Map<core.String, core.Object> toJson() {
  final core.Map<core.String, core.Object> _json =
      new core.Map<core.String, core.Object>();
  if (arrayValue != null) {
    _json["arrayValue"] = (arrayValue).toJson();
  }
  if (booleanValue != null) {
    _json["booleanValue"] = booleanValue;
  }
  if (bytesValue != null) {
    _json["bytesValue"] = bytesValue;
  }
  if (doubleValue != null) {
    _json["doubleValue"] = doubleValue;
  }
  if (geoPointValue != null) {
    _json["geoPointValue"] = (geoPointValue).toJson();
  }
  if (integerValue != null) {
    _json["integerValue"] = integerValue;
  }
  if (mapValue != null) {
    _json["mapValue"] = (mapValue).toJson();
  }
  if (nullValue != null) {
    _json["nullValue"] = nullValue;
  }
  if (referenceValue != null) {
    _json["referenceValue"] = referenceValue;
  }
  if (stringValue != null) {
    _json["stringValue"] = stringValue;
  }
  if (timestampValue != null) {
    _json["timestampValue"] = timestampValue;
  }
  return _json;
}