Theme.fromJson constructor

Theme.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Theme.fromJson(Map<String, dynamic> json) {
  return Theme(
    arn: json['Arn'] as String?,
    createdTime: timeStampFromJson(json['CreatedTime']),
    lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']),
    name: json['Name'] as String?,
    themeId: json['ThemeId'] as String?,
    type: (json['Type'] as String?)?.toThemeType(),
    version: json['Version'] != null
        ? ThemeVersion.fromJson(json['Version'] as Map<String, dynamic>)
        : null,
  );
}