toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (adId != null) 'adId': adId!,
      if (clickTag != null) 'clickTag': clickTag!,
      if (creativeId != null) 'creativeId': creativeId!,
      if (format != null) 'format': format!,
      if (impressionTag != null) 'impressionTag': impressionTag!,
    };