CreativeOptimizationConfiguration.fromJson constructor

CreativeOptimizationConfiguration.fromJson(
  1. Map json_
)

Implementation

CreativeOptimizationConfiguration.fromJson(core.Map json_)
    : this(
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        optimizationActivitys: json_.containsKey('optimizationActivitys')
            ? (json_['optimizationActivitys'] as core.List)
                .map((value) => OptimizationActivity.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        optimizationModel: json_.containsKey('optimizationModel')
            ? json_['optimizationModel'] as core.String
            : null,
      );