ReturnaddressCustomBatchRequestEntry.fromJson constructor

ReturnaddressCustomBatchRequestEntry.fromJson(
  1. Map json_
)

Implementation

ReturnaddressCustomBatchRequestEntry.fromJson(core.Map json_)
    : this(
        batchId: json_.containsKey('batchId')
            ? json_['batchId'] as core.int
            : null,
        merchantId: json_.containsKey('merchantId')
            ? json_['merchantId'] as core.String
            : null,
        method: json_.containsKey('method')
            ? json_['method'] as core.String
            : null,
        returnAddress: json_.containsKey('returnAddress')
            ? ReturnAddress.fromJson(
                json_['returnAddress'] as core.Map<core.String, core.dynamic>)
            : null,
        returnAddressId: json_.containsKey('returnAddressId')
            ? json_['returnAddressId'] as core.String
            : null,
      );