ReturnPricingInfo.fromJson constructor

ReturnPricingInfo.fromJson(
  1. Map json_
)

Implementation

ReturnPricingInfo.fromJson(core.Map json_)
    : this(
        chargeReturnShippingFee: json_.containsKey('chargeReturnShippingFee')
            ? json_['chargeReturnShippingFee'] as core.bool
            : null,
        maxReturnShippingFee: json_.containsKey('maxReturnShippingFee')
            ? MonetaryAmount.fromJson(json_['maxReturnShippingFee']
                as core.Map<core.String, core.dynamic>)
            : null,
        refundableItemsTotalAmount:
            json_.containsKey('refundableItemsTotalAmount')
                ? MonetaryAmount.fromJson(json_['refundableItemsTotalAmount']
                    as core.Map<core.String, core.dynamic>)
                : null,
        refundableShippingAmount:
            json_.containsKey('refundableShippingAmount')
                ? MonetaryAmount.fromJson(json_['refundableShippingAmount']
                    as core.Map<core.String, core.dynamic>)
                : null,
        totalRefundedAmount: json_.containsKey('totalRefundedAmount')
            ? MonetaryAmount.fromJson(json_['totalRefundedAmount']
                as core.Map<core.String, core.dynamic>)
            : null,
      );