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 (boolValue != null) {
    _json["boolValue"] = boolValue;
  }
  if (datetimeValue != null) {
    _json["datetimeValue"] = (datetimeValue).toIso8601String();
  }
  if (intValue != null) {
    _json["intValue"] = intValue;
  }
  if (msgValue != null) {
    _json["msgValue"] = msgValue;
  }
  if (name != null) {
    _json["name"] = name;
  }
  if (stringValue != null) {
    _json["stringValue"] = stringValue;
  }
  return _json;
}