OrderreturnsRefundOperation.fromJson constructor

OrderreturnsRefundOperation.fromJson(
  1. Map json_
)

Implementation

OrderreturnsRefundOperation.fromJson(core.Map json_)
    : this(
        fullRefund: json_.containsKey('fullRefund')
            ? json_['fullRefund'] as core.bool
            : null,
        partialRefund: json_.containsKey('partialRefund')
            ? OrderreturnsPartialRefund.fromJson(
                json_['partialRefund'] as core.Map<core.String, core.dynamic>)
            : null,
        paymentType: json_.containsKey('paymentType')
            ? json_['paymentType'] as core.String
            : null,
        reasonText: json_.containsKey('reasonText')
            ? json_['reasonText'] as core.String
            : null,
        returnRefundReason: json_.containsKey('returnRefundReason')
            ? json_['returnRefundReason'] as core.String
            : null,
      );