Quantity.fromJson constructor

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

Implementation

factory Quantity.fromJson(Map<String, Object?> json) => Quantity(
      min: (json["min"] as num).toInt(),
      max: json["max"] == null ? null : (json["max"] as num).toInt(),
    );