ThemeVersion.fromJson constructor
ThemeVersion.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ThemeVersion.fromJson(Map<String, dynamic> json) {
return ThemeVersion(
arn: json['Arn'] as String?,
baseThemeId: json['BaseThemeId'] as String?,
configuration: json['Configuration'] != null
? ThemeConfiguration.fromJson(
json['Configuration'] as Map<String, dynamic>)
: null,
createdTime: timeStampFromJson(json['CreatedTime']),
description: json['Description'] as String?,
errors: (json['Errors'] as List?)
?.whereNotNull()
.map((e) => ThemeError.fromJson(e as Map<String, dynamic>))
.toList(),
status: (json['Status'] as String?)?.toResourceStatus(),
versionNumber: json['VersionNumber'] as int?,
);
}