Recommendation.fromJson constructor

Recommendation.fromJson(
  1. Map json_
)

Implementation

Recommendation.fromJson(core.Map json_)
    : this(
        additionalCallToAction: json_.containsKey('additionalCallToAction')
            ? (json_['additionalCallToAction'] as core.List)
                .map((value) => RecommendationCallToAction.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        additionalDescriptions: json_.containsKey('additionalDescriptions')
            ? (json_['additionalDescriptions'] as core.List)
                .map((value) => RecommendationDescription.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        creative: json_.containsKey('creative')
            ? (json_['creative'] as core.List)
                .map((value) => RecommendationCreative.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        defaultCallToAction: json_.containsKey('defaultCallToAction')
            ? RecommendationCallToAction.fromJson(json_['defaultCallToAction']
                as core.Map<core.String, core.dynamic>)
            : null,
        defaultDescription: json_.containsKey('defaultDescription')
            ? json_['defaultDescription'] as core.String
            : null,
        numericalImpact: json_.containsKey('numericalImpact')
            ? json_['numericalImpact'] as core.int
            : null,
        paid: json_.containsKey('paid') ? json_['paid'] as core.bool : null,
        recommendationName: json_.containsKey('recommendationName')
            ? json_['recommendationName'] as core.String
            : null,
        subType: json_.containsKey('subType')
            ? json_['subType'] as core.String
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );