ShippingDetails constructor

  1. @JsonSerializable(explicitToJson: true)
const ShippingDetails({
  1. required Address address,
  2. String? name,
  3. String? carrier,
  4. String? phone,
  5. String? trackingNumber,
})

Implementation

@JsonSerializable(explicitToJson: true)
const factory ShippingDetails({
  /// Recipient address.
  required Address address,

  /// Recipient name.
  String? name,

  /// Deliver service that will ship the product
  String? carrier,

  /// Recipient phone number.
  String? phone,

  /// Tracking number of the shipment. If multiple tracking numbers separate them
  /// with commas.
  String? trackingNumber,
}) = _ShippingDetails;