ShippingsettingsCustomBatchRequestEntry.fromJson constructor

ShippingsettingsCustomBatchRequestEntry.fromJson(
  1. Map json_
)

Implementation

ShippingsettingsCustomBatchRequestEntry.fromJson(core.Map json_)
    : this(
        accountId: json_.containsKey('accountId')
            ? json_['accountId'] as core.String
            : null,
        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,
        shippingSettings: json_.containsKey('shippingSettings')
            ? ShippingSettings.fromJson(json_['shippingSettings']
                as core.Map<core.String, core.dynamic>)
            : null,
      );