LocalinventoryCustomBatchRequestEntry.fromJson constructor

LocalinventoryCustomBatchRequestEntry.fromJson(
  1. Map json_
)

Implementation

LocalinventoryCustomBatchRequestEntry.fromJson(core.Map json_)
    : this(
        batchId: json_.containsKey('batchId')
            ? json_['batchId'] as core.int
            : null,
        localInventory: json_.containsKey('localInventory')
            ? LocalInventory.fromJson(json_['localInventory']
                as core.Map<core.String, core.dynamic>)
            : null,
        merchantId: json_.containsKey('merchantId')
            ? json_['merchantId'] as core.String
            : null,
        method: json_.containsKey('method')
            ? json_['method'] as core.String
            : null,
        productId: json_.containsKey('productId')
            ? json_['productId'] as core.String
            : null,
      );