MerchantOrderReturn.fromJson constructor

MerchantOrderReturn.fromJson(
  1. Map json_
)

Implementation

MerchantOrderReturn.fromJson(core.Map json_)
    : this(
        creationDate: json_.containsKey('creationDate')
            ? json_['creationDate'] as core.String
            : null,
        merchantOrderId: json_.containsKey('merchantOrderId')
            ? json_['merchantOrderId'] as core.String
            : null,
        orderId: json_.containsKey('orderId')
            ? json_['orderId'] as core.String
            : null,
        orderReturnId: json_.containsKey('orderReturnId')
            ? json_['orderReturnId'] as core.String
            : null,
        returnItems: json_.containsKey('returnItems')
            ? (json_['returnItems'] as core.List)
                .map((value) => MerchantOrderReturnItem.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        returnPricingInfo: json_.containsKey('returnPricingInfo')
            ? ReturnPricingInfo.fromJson(json_['returnPricingInfo']
                as core.Map<core.String, core.dynamic>)
            : null,
        returnShipments: json_.containsKey('returnShipments')
            ? (json_['returnShipments'] as core.List)
                .map((value) => ReturnShipment.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );