toJson method

Map<String, dynamic> toJson()

Converts this Time instance to a JSON object.

Implementation

Map<String, dynamic> toJson() {
  return {
    'dateTime': dateTime,
    'timeZone': timeZone,
  };
}