toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['Code'] = this.code;
data['Name'] = this.name;
data['Description'] = this.description;
if (this.channels != null) {
data['Channels'] = this.channels!.map((v) => v.toJson()).toList();
}
return data;
}