Spreadsheet.fromJson constructor
Spreadsheet.fromJson(
- Map json_
Implementation
Spreadsheet.fromJson(core.Map json_)
: this(
dataSourceSchedules: json_.containsKey('dataSourceSchedules')
? (json_['dataSourceSchedules'] as core.List)
.map((value) => DataSourceRefreshSchedule.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
dataSources: json_.containsKey('dataSources')
? (json_['dataSources'] as core.List)
.map((value) => DataSource.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
developerMetadata: json_.containsKey('developerMetadata')
? (json_['developerMetadata'] as core.List)
.map((value) => DeveloperMetadata.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
namedRanges: json_.containsKey('namedRanges')
? (json_['namedRanges'] as core.List)
.map((value) => NamedRange.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
properties: json_.containsKey('properties')
? SpreadsheetProperties.fromJson(
json_['properties'] as core.Map<core.String, core.dynamic>)
: null,
sheets: json_.containsKey('sheets')
? (json_['sheets'] as core.List)
.map((value) => Sheet.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
spreadsheetId: json_.containsKey('spreadsheetId')
? json_['spreadsheetId'] as core.String
: null,
spreadsheetUrl: json_.containsKey('spreadsheetUrl')
? json_['spreadsheetUrl'] as core.String
: null,
);