DataSource.fromJson constructor
DataSource.fromJson(
- Map json_
Implementation
DataSource.fromJson(core.Map json_)
: this(
calculatedColumns: json_.containsKey('calculatedColumns')
? (json_['calculatedColumns'] as core.List)
.map((value) => DataSourceColumn.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
dataSourceId: json_.containsKey('dataSourceId')
? json_['dataSourceId'] as core.String
: null,
sheetId: json_.containsKey('sheetId')
? json_['sheetId'] as core.int
: null,
spec: json_.containsKey('spec')
? DataSourceSpec.fromJson(
json_['spec'] as core.Map<core.String, core.dynamic>)
: null,
);