PosSaleRequest.fromJson constructor

PosSaleRequest.fromJson(
  1. Map json_
)

Implementation

PosSaleRequest.fromJson(core.Map json_)
    : this(
        contentLanguage: json_.containsKey('contentLanguage')
            ? json_['contentLanguage'] as core.String
            : null,
        gtin: json_.containsKey('gtin') ? json_['gtin'] as core.String : null,
        itemId: json_.containsKey('itemId')
            ? json_['itemId'] as core.String
            : null,
        price: json_.containsKey('price')
            ? Price.fromJson(
                json_['price'] as core.Map<core.String, core.dynamic>)
            : null,
        quantity: json_.containsKey('quantity')
            ? json_['quantity'] as core.String
            : null,
        saleId: json_.containsKey('saleId')
            ? json_['saleId'] as core.String
            : null,
        storeCode: json_.containsKey('storeCode')
            ? json_['storeCode'] as core.String
            : null,
        targetCountry: json_.containsKey('targetCountry')
            ? json_['targetCountry'] as core.String
            : null,
        timestamp: json_.containsKey('timestamp')
            ? json_['timestamp'] as core.String
            : null,
      );