toJson method

Map<String, dynamic> toJson()

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,
  };
}