ProductstatusesCustomBatchRequestEntry.fromJson constructor

ProductstatusesCustomBatchRequestEntry.fromJson(
  1. Map json_
)

Implementation

ProductstatusesCustomBatchRequestEntry.fromJson(core.Map json_)
    : this(
        batchId: json_.containsKey('batchId')
            ? json_['batchId'] as core.int
            : null,
        destinations: json_.containsKey('destinations')
            ? (json_['destinations'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        includeAttributes: json_.containsKey('includeAttributes')
            ? json_['includeAttributes'] as core.bool
            : 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,
      );