toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final durationSeconds = this.durationSeconds;
  final enabled = this.enabled;
  return {
    if (durationSeconds != null) 'DurationSeconds': durationSeconds,
    if (enabled != null) 'Enabled': enabled,
  };
}