Source.fromJson constructor

Source.fromJson(
  1. Map<String, dynamic> json
)

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