Datasource.fromJson constructor
Datasource.fromJson(
- Map json
Implementation
factory Datasource.fromJson(Map json) {
return Datasource(
name: json['name'],
provider: ConnectorType.of(json['provider']),
activeProvider: ConnectorType.of(json['activeProvider']),
url: Env.fromJson(json['url']),
directUrl:
json['directUrl'] != null ? Env.fromJson(json['directUrl']) : null,
schemas: (json['schemas'] as Iterable).cast(),
);
}