OrderLineItemShippingDetails.fromJson constructor

OrderLineItemShippingDetails.fromJson(
  1. Map json_
)

Implementation

OrderLineItemShippingDetails.fromJson(core.Map json_)
    : this(
        deliverByDate: json_.containsKey('deliverByDate')
            ? json_['deliverByDate'] as core.String
            : null,
        method: json_.containsKey('method')
            ? OrderLineItemShippingDetailsMethod.fromJson(
                json_['method'] as core.Map<core.String, core.dynamic>)
            : null,
        pickupPromiseInMinutes: json_.containsKey('pickupPromiseInMinutes')
            ? json_['pickupPromiseInMinutes'] as core.int
            : null,
        shipByDate: json_.containsKey('shipByDate')
            ? json_['shipByDate'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );