OrderinvoicesCreateRefundInvoiceRequest.fromJson constructor

OrderinvoicesCreateRefundInvoiceRequest.fromJson(
  1. Map json_
)

Implementation

OrderinvoicesCreateRefundInvoiceRequest.fromJson(core.Map json_)
    : this(
        invoiceId: json_.containsKey('invoiceId')
            ? json_['invoiceId'] as core.String
            : null,
        operationId: json_.containsKey('operationId')
            ? json_['operationId'] as core.String
            : null,
        refundOnlyOption: json_.containsKey('refundOnlyOption')
            ? OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption
                .fromJson(json_['refundOnlyOption']
                    as core.Map<core.String, core.dynamic>)
            : null,
        returnOption: json_.containsKey('returnOption')
            ? OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption
                .fromJson(json_['returnOption']
                    as core.Map<core.String, core.dynamic>)
            : null,
        shipmentInvoices: json_.containsKey('shipmentInvoices')
            ? (json_['shipmentInvoices'] as core.List)
                .map((value) => ShipmentInvoice.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );