OrderreturnsProcessRequest.fromJson constructor

OrderreturnsProcessRequest.fromJson(
  1. Map json_
)

Implementation

OrderreturnsProcessRequest.fromJson(core.Map json_)
    : this(
        fullChargeReturnShippingCost:
            json_.containsKey('fullChargeReturnShippingCost')
                ? json_['fullChargeReturnShippingCost'] as core.bool
                : null,
        operationId: json_.containsKey('operationId')
            ? json_['operationId'] as core.String
            : null,
        refundShippingFee: json_.containsKey('refundShippingFee')
            ? OrderreturnsRefundOperation.fromJson(json_['refundShippingFee']
                as core.Map<core.String, core.dynamic>)
            : null,
        returnItems: json_.containsKey('returnItems')
            ? (json_['returnItems'] as core.List)
                .map((value) => OrderreturnsReturnItem.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );