OrdersRefundOrderRequest.fromJson constructor

OrdersRefundOrderRequest.fromJson(
  1. Map json_
)

Implementation

OrdersRefundOrderRequest.fromJson(core.Map json_)
    : this(
        amount: json_.containsKey('amount')
            ? MonetaryAmount.fromJson(
                json_['amount'] as core.Map<core.String, core.dynamic>)
            : null,
        fullRefund: json_.containsKey('fullRefund')
            ? json_['fullRefund'] as core.bool
            : null,
        operationId: json_.containsKey('operationId')
            ? json_['operationId'] as core.String
            : null,
        reason: json_.containsKey('reason')
            ? json_['reason'] as core.String
            : null,
        reasonText: json_.containsKey('reasonText')
            ? json_['reasonText'] as core.String
            : null,
      );