SourceConfig.fromJson constructor

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

Creates a SourceConfig from json

Implementation

factory SourceConfig.fromJson(Map<String, dynamic> json) {
  if (json.containsKey('type')) {
    json['type'] = (json['type'] as String).toLowerCase();
  }
  return _$SourceConfigFromJson(json);
}