toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (iconClickThroughUrl != null)
        'iconClickThroughUrl': iconClickThroughUrl!,
      if (iconClickTrackingUrl != null)
        'iconClickTrackingUrl': iconClickTrackingUrl!,
      if (iconViewTrackingUrl != null)
        'iconViewTrackingUrl': iconViewTrackingUrl!,
      if (program != null) 'program': program!,
      if (resourceUrl != null) 'resourceUrl': resourceUrl!,
      if (size != null) 'size': size!,
      if (xPosition != null) 'xPosition': xPosition!,
      if (yPosition != null) 'yPosition': yPosition!,
    };