OrdersUpdateShipmentRequest.fromJson constructor

OrdersUpdateShipmentRequest.fromJson(
  1. Map json_
)

Implementation

OrdersUpdateShipmentRequest.fromJson(core.Map json_)
    : this(
        carrier: json_.containsKey('carrier')
            ? json_['carrier'] as core.String
            : null,
        deliveryDate: json_.containsKey('deliveryDate')
            ? json_['deliveryDate'] as core.String
            : null,
        lastPickupDate: json_.containsKey('lastPickupDate')
            ? json_['lastPickupDate'] as core.String
            : null,
        operationId: json_.containsKey('operationId')
            ? json_['operationId'] as core.String
            : null,
        readyPickupDate: json_.containsKey('readyPickupDate')
            ? json_['readyPickupDate'] as core.String
            : null,
        scheduledDeliveryDetails: json_
                .containsKey('scheduledDeliveryDetails')
            ? OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails
                .fromJson(json_['scheduledDeliveryDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        shipmentId: json_.containsKey('shipmentId')
            ? json_['shipmentId'] as core.String
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
        trackingId: json_.containsKey('trackingId')
            ? json_['trackingId'] as core.String
            : null,
        undeliveredDate: json_.containsKey('undeliveredDate')
            ? json_['undeliveredDate'] as core.String
            : null,
      );