Source.fromJson constructor
Implementation
factory Source.fromJson(Map<String, dynamic> json) {
if (json.containsKey('config') && json.containsKey('id')) {
json['sourceConfig'] = json['config'];
return _$SourceFromJson(json);
}
return _$SourceFromJson(json);
}