Update.fromJson constructor

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

Implementation

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