ItemOptions.fromJson constructor

ItemOptions.fromJson(
  1. String json
)

Implementation

ItemOptions.fromJson(String json) {
    Map<String, dynamic> map = jsonDecode(json);
    id = map["id"];
    description = map["description"];
    type = map["type"];
    optional = map["optional"];
    min = map["min"];
    max = map["max"];
    options = map["options"];
    itemId = map["item_id"];
}