Theme.fromJson constructor
Implementation
factory Theme.fromJson(Map<String, Object?> json) {
return Theme(
themeKey: json[r'themeKey'] as String? ?? '',
name: json[r'name'] as String?,
description: json[r'description'] as String?,
icon: json[r'icon'] != null
? Icon.fromJson(json[r'icon']! as Map<String, Object?>)
: null,
links: json[r'_links'] != null
? GenericLinks.fromJson(json[r'_links']! as Map<String, Object?>)
: null,
);
}