PosCustomBatchRequestEntry.fromJson constructor

PosCustomBatchRequestEntry.fromJson(
  1. Map json_
)

Implementation

PosCustomBatchRequestEntry.fromJson(core.Map json_)
    : this(
        batchId: json_.containsKey('batchId')
            ? json_['batchId'] as core.int
            : null,
        inventory: json_.containsKey('inventory')
            ? PosInventory.fromJson(
                json_['inventory'] 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,
        sale: json_.containsKey('sale')
            ? PosSale.fromJson(
                json_['sale'] as core.Map<core.String, core.dynamic>)
            : null,
        store: json_.containsKey('store')
            ? PosStore.fromJson(
                json_['store'] as core.Map<core.String, core.dynamic>)
            : null,
        storeCode: json_.containsKey('storeCode')
            ? json_['storeCode'] as core.String
            : null,
        targetMerchantId: json_.containsKey('targetMerchantId')
            ? json_['targetMerchantId'] as core.String
            : null,
      );