toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> json = <String, dynamic>{};
if (adSize != null) json['adSize'] = adSize!.toJson();
if (choicesPosition != null) json['choicesPosition'] = choicesPosition;
if (mediaDirection != null) json['direction'] = mediaDirection;
if (mediaAspect != null) json['aspect'] = mediaAspect;
if (requestCustomDislikeAd != null) json['requestCustomDislikeAd'] = requestCustomDislikeAd;
if (requestMultiImages != null) json['requestMultiImages'] = requestMultiImages;
if (returnUrlsForImages != null) json['returnUrlsForImages'] = returnUrlsForImages;
if (videoConfiguration != null) json['videoConfiguration'] = videoConfiguration!.toJson();
return json;
}