toJson method

Map<String, dynamic> toJson()

Implementation

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