Delivery.fromJson constructor

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

Implementation

factory Delivery.fromJson(Map<String, Object?> json) => Delivery(
      mode: json["mode"] == null ? null : DeliveryMode.fromJson(json["mode"]),
      filename: json["filename"] == null ? null : json["filename"] as String,
      contentType: json["content_type"] == null
          ? null
          : json["content_type"] as String,
      disposition:
          json["disposition"] == null ? null : json["disposition"] as String,
    );