toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  if (this.triggerIcon != null) {
    data['triggerIcon'] = this.triggerIcon!.toJson();
  }
  if (this.triggerLabel != null) {
    data['triggerLabel'] = this.triggerLabel!.toJson();
  }
  data['trigger'] = this.trigger;
  data['dismissalSetting'] = this.dismissalSetting;
  data['title'] = this.title;
  data['selector'] = this.selector;
  data['language'] = this.language;
  data['content'] = this.content;
  data['animationType'] = this.animationType;
  data['delay'] = this.delay;
  data['isBackdrop'] = this.isBackdrop;
  data['isCaret'] = this.isCaret;
  data['position'] = this.position;
  data['triggerMode'] = this.triggerMode;
  data['id'] = this.id;
  data['shape'] = this.shape;
  data['background'] = this.background;
  data['textColor'] = this.textColor;
  data['showConfetti'] = this.showConfetti;
  data['draggable'] = this.draggable;
  data['url'] = this.url;
  data['color'] = this.color;
  data['height'] = this.height;
  data['width'] = this.width;
  return data;
}