toJson method

Map<String, dynamic> toJson()

Implementation

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