toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final endTime = this.endTime;
  final startTime = this.startTime;
  final timezone = this.timezone;
  return {
    if (endTime != null) 'EndTime': iso8601ToJson(endTime),
    if (startTime != null) 'StartTime': iso8601ToJson(startTime),
    if (timezone != null) 'Timezone': timezone,
  };
}