OrdersRefundItemRequest.fromJson constructor

OrdersRefundItemRequest.fromJson(
  1. Map json_
)

Implementation

OrdersRefundItemRequest.fromJson(core.Map json_)
    : this(
        items: json_.containsKey('items')
            ? (json_['items'] as core.List)
                .map((value) =>
                    OrdersCustomBatchRequestEntryRefundItemItem.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : 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,
        shipping: json_.containsKey('shipping')
            ? OrdersCustomBatchRequestEntryRefundItemShipping.fromJson(
                json_['shipping'] as core.Map<core.String, core.dynamic>)
            : null,
      );