Segments.fromJson constructor

Segments.fromJson(
  1. Map json_
)

Implementation

Segments.fromJson(core.Map json_)
    : this(
        brand:
            json_.containsKey('brand') ? json_['brand'] as core.String : null,
        categoryL1: json_.containsKey('categoryL1')
            ? json_['categoryL1'] as core.String
            : null,
        categoryL2: json_.containsKey('categoryL2')
            ? json_['categoryL2'] as core.String
            : null,
        categoryL3: json_.containsKey('categoryL3')
            ? json_['categoryL3'] as core.String
            : null,
        categoryL4: json_.containsKey('categoryL4')
            ? json_['categoryL4'] as core.String
            : null,
        categoryL5: json_.containsKey('categoryL5')
            ? json_['categoryL5'] as core.String
            : null,
        currencyCode: json_.containsKey('currencyCode')
            ? json_['currencyCode'] as core.String
            : null,
        customLabel0: json_.containsKey('customLabel0')
            ? json_['customLabel0'] as core.String
            : null,
        customLabel1: json_.containsKey('customLabel1')
            ? json_['customLabel1'] as core.String
            : null,
        customLabel2: json_.containsKey('customLabel2')
            ? json_['customLabel2'] as core.String
            : null,
        customLabel3: json_.containsKey('customLabel3')
            ? json_['customLabel3'] as core.String
            : null,
        customLabel4: json_.containsKey('customLabel4')
            ? json_['customLabel4'] as core.String
            : null,
        customerCountryCode: json_.containsKey('customerCountryCode')
            ? json_['customerCountryCode'] as core.String
            : null,
        date: json_.containsKey('date')
            ? Date.fromJson(
                json_['date'] as core.Map<core.String, core.dynamic>)
            : null,
        offerId: json_.containsKey('offerId')
            ? json_['offerId'] as core.String
            : null,
        productTypeL1: json_.containsKey('productTypeL1')
            ? json_['productTypeL1'] as core.String
            : null,
        productTypeL2: json_.containsKey('productTypeL2')
            ? json_['productTypeL2'] as core.String
            : null,
        productTypeL3: json_.containsKey('productTypeL3')
            ? json_['productTypeL3'] as core.String
            : null,
        productTypeL4: json_.containsKey('productTypeL4')
            ? json_['productTypeL4'] as core.String
            : null,
        productTypeL5: json_.containsKey('productTypeL5')
            ? json_['productTypeL5'] as core.String
            : null,
        program: json_.containsKey('program')
            ? json_['program'] as core.String
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
        week: json_.containsKey('week')
            ? Date.fromJson(
                json_['week'] as core.Map<core.String, core.dynamic>)
            : null,
      );