DashboardVersion.fromJson constructor
DashboardVersion.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DashboardVersion.fromJson(Map<String, dynamic> json) {
return DashboardVersion(
arn: json['Arn'] as String?,
createdTime: timeStampFromJson(json['CreatedTime']),
dataSetArns: (json['DataSetArns'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
description: json['Description'] as String?,
errors: (json['Errors'] as List?)
?.whereNotNull()
.map((e) => DashboardError.fromJson(e as Map<String, dynamic>))
.toList(),
sheets: (json['Sheets'] as List?)
?.whereNotNull()
.map((e) => Sheet.fromJson(e as Map<String, dynamic>))
.toList(),
sourceEntityArn: json['SourceEntityArn'] as String?,
status: (json['Status'] as String?)?.toResourceStatus(),
themeArn: json['ThemeArn'] as String?,
versionNumber: json['VersionNumber'] as int?,
);
}