SettingOption.fromJson constructor
SettingOption.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SettingOption.fromJson(Map<String, dynamic> json) => SettingOption(
id: json["id"],
label: json["label"],
description: json["description"],
type: json["type"],
settingOptionDefault: json["default"],
tip: json["tip"],
value: json["value"],
links: Links.fromJson(json["_links"]),
options: json["options"] == null
? null
: Map.from(json["options"])
.map((k, v) => MapEntry<String, String>(k, v)),
);