toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final durationInSeconds = this.durationInSeconds;
  return {
    if (durationInSeconds != null) 'DurationInSeconds': durationInSeconds,
  };
}