Usage.fromJson constructor

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

Implementation

factory Usage.fromJson(Map<String, Object?> json) => Usage(
      multiUse: json["multi_use"] == null ? null : json["multi_use"] as bool,
      order: json["order"] == null
          ? null
          : UsageOrder.fromJson(
              (json["order"] as Map).cast<String, Object?>(),
            ),
      singleUse:
          json["single_use"] == null ? null : json["single_use"] as bool,
    );