toJson method

Map<String, dynamic> toJson()

Implementation

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