CreativeSpecification.fromJson constructor

CreativeSpecification.fromJson(
  1. Map json_
)

Implementation

CreativeSpecification.fromJson(core.Map json_)
    : this(
        creativeCompanionSizes: json_.containsKey('creativeCompanionSizes')
            ? (json_['creativeCompanionSizes'] as core.List)
                .map((value) => AdSize.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        creativeSize: json_.containsKey('creativeSize')
            ? AdSize.fromJson(
                json_['creativeSize'] as core.Map<core.String, core.dynamic>)
            : null,
      );