toJson method

Map<String, dynamic> toJson()

Implementation

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