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