toJson method
Implementation
Map<String, dynamic> toJson() {
final sourceName = this.sourceName;
final cases = this.cases;
final defaultValue = this.defaultValue;
return {
'SourceName': sourceName,
if (cases != null) 'Cases': cases,
if (defaultValue != null) 'DefaultValue': defaultValue,
};
}