OrderreturnsCreateOrderReturnRequest.fromJson constructor

OrderreturnsCreateOrderReturnRequest.fromJson(
  1. Map json_
)

Implementation

OrderreturnsCreateOrderReturnRequest.fromJson(core.Map json_)
    : this(
        lineItems: json_.containsKey('lineItems')
            ? (json_['lineItems'] as core.List)
                .map((value) => OrderreturnsLineItem.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        operationId: json_.containsKey('operationId')
            ? json_['operationId'] as core.String
            : null,
        orderId: json_.containsKey('orderId')
            ? json_['orderId'] as core.String
            : null,
        returnMethodType: json_.containsKey('returnMethodType')
            ? json_['returnMethodType'] as core.String
            : null,
      );