ThemeNoLinks.fromJson constructor

ThemeNoLinks.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory ThemeNoLinks.fromJson(Map<String, Object?> json) {
  return ThemeNoLinks(
    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,
  );
}