Attributes.fromJson constructor

Attributes.fromJson(
  1. Map json_
)

Implementation

Attributes.fromJson(core.Map json_)
    : this(
        additionalImageLink: json_.containsKey('additionalImageLink')
            ? (json_['additionalImageLink'] as core.List)
                .map((value) => Image.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        ageGroup: json_.containsKey('ageGroup')
            ? json_['ageGroup'] as core.String
            : null,
        brand:
            json_.containsKey('brand') ? json_['brand'] as core.String : null,
        capacity: json_.containsKey('capacity')
            ? Capacity.fromJson(
                json_['capacity'] as core.Map<core.String, core.dynamic>)
            : null,
        certification: json_.containsKey('certification')
            ? (json_['certification'] as core.List)
                .map((value) =>
                    GoogleShoppingManufacturersV1ProductCertification
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        color:
            json_.containsKey('color') ? json_['color'] as core.String : null,
        count: json_.containsKey('count')
            ? Count.fromJson(
                json_['count'] as core.Map<core.String, core.dynamic>)
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        disclosureDate: json_.containsKey('disclosureDate')
            ? json_['disclosureDate'] as core.String
            : null,
        excludedDestination: json_.containsKey('excludedDestination')
            ? (json_['excludedDestination'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        featureDescription: json_.containsKey('featureDescription')
            ? (json_['featureDescription'] as core.List)
                .map((value) => FeatureDescription.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        flavor: json_.containsKey('flavor')
            ? json_['flavor'] as core.String
            : null,
        format: json_.containsKey('format')
            ? json_['format'] as core.String
            : null,
        gender: json_.containsKey('gender')
            ? json_['gender'] as core.String
            : null,
        grocery: json_.containsKey('grocery')
            ? Grocery.fromJson(
                json_['grocery'] as core.Map<core.String, core.dynamic>)
            : null,
        gtin: json_.containsKey('gtin')
            ? (json_['gtin'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        imageLink: json_.containsKey('imageLink')
            ? Image.fromJson(
                json_['imageLink'] as core.Map<core.String, core.dynamic>)
            : null,
        includedDestination: json_.containsKey('includedDestination')
            ? (json_['includedDestination'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        itemGroupId: json_.containsKey('itemGroupId')
            ? json_['itemGroupId'] as core.String
            : null,
        material: json_.containsKey('material')
            ? json_['material'] as core.String
            : null,
        mpn: json_.containsKey('mpn') ? json_['mpn'] as core.String : null,
        nutrition: json_.containsKey('nutrition')
            ? Nutrition.fromJson(
                json_['nutrition'] as core.Map<core.String, core.dynamic>)
            : null,
        pattern: json_.containsKey('pattern')
            ? json_['pattern'] as core.String
            : null,
        productDetail: json_.containsKey('productDetail')
            ? (json_['productDetail'] as core.List)
                .map((value) => ProductDetail.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        productHighlight: json_.containsKey('productHighlight')
            ? (json_['productHighlight'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        productLine: json_.containsKey('productLine')
            ? json_['productLine'] as core.String
            : null,
        productName: json_.containsKey('productName')
            ? json_['productName'] as core.String
            : null,
        productPageUrl: json_.containsKey('productPageUrl')
            ? json_['productPageUrl'] as core.String
            : null,
        productType: json_.containsKey('productType')
            ? (json_['productType'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        releaseDate: json_.containsKey('releaseDate')
            ? json_['releaseDate'] as core.String
            : null,
        richProductContent: json_.containsKey('richProductContent')
            ? (json_['richProductContent'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        scent:
            json_.containsKey('scent') ? json_['scent'] as core.String : null,
        size: json_.containsKey('size') ? json_['size'] as core.String : null,
        sizeSystem: json_.containsKey('sizeSystem')
            ? json_['sizeSystem'] as core.String
            : null,
        sizeType: json_.containsKey('sizeType')
            ? (json_['sizeType'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        suggestedRetailPrice: json_.containsKey('suggestedRetailPrice')
            ? Price.fromJson(json_['suggestedRetailPrice']
                as core.Map<core.String, core.dynamic>)
            : null,
        targetClientId: json_.containsKey('targetClientId')
            ? json_['targetClientId'] as core.String
            : null,
        theme:
            json_.containsKey('theme') ? json_['theme'] as core.String : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
        videoLink: json_.containsKey('videoLink')
            ? (json_['videoLink'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        virtualModelLink: json_.containsKey('virtualModelLink')
            ? json_['virtualModelLink'] as core.String
            : null,
      );