toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (allowedFormats != null) 'allowedFormats': allowedFormats!,
      if (companionSizes != null)
        'companionSizes':
            companionSizes!.map((value) => value.toJson()).toList(),
      if (creativeSizeType != null) 'creativeSizeType': creativeSizeType!,
      if (nativeTemplate != null) 'nativeTemplate': nativeTemplate!,
      if (size != null) 'size': size!.toJson(),
      if (skippableAdType != null) 'skippableAdType': skippableAdType!,
    };