CreativeConfig.fromJson constructor

CreativeConfig.fromJson(
  1. Map json_
)

Implementation

CreativeConfig.fromJson(core.Map json_)
    : this(
        creativeType: json_.containsKey('creativeType')
            ? json_['creativeType'] as core.String
            : null,
        displayCreativeConfig: json_.containsKey('displayCreativeConfig')
            ? InventorySourceDisplayCreativeConfig.fromJson(
                json_['displayCreativeConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        videoCreativeConfig: json_.containsKey('videoCreativeConfig')
            ? InventorySourceVideoCreativeConfig.fromJson(
                json_['videoCreativeConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );