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