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 (hours != null) {
    _json["hours"] = hours;
  }
  if (minutes != null) {
    _json["minutes"] = minutes;
  }
  if (nanos != null) {
    _json["nanos"] = nanos;
  }
  if (seconds != null) {
    _json["seconds"] = seconds;
  }
  return _json;
}