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