toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final data = Map<String, dynamic>();
  data['notificationName'] = this.notificationName;
  data['notificationFaceURL'] = this.notificationFaceURL;
  data['notificationType'] = this.notificationType;
  data['text'] = this.text;
  data['externalUrl'] = this.externalUrl;
  data['mixType'] = this.mixType;
  if (this.pictureElem != null) {
    data['pictureElem'] = this.pictureElem!.toJson();
  }
  if (this.soundElem != null) {
    data['soundElem'] = this.soundElem!.toJson();
  }
  if (this.videoElem != null) {
    data['videoElem'] = this.videoElem!.toJson();
  }
  if (this.fileElem != null) {
    data['fileElem'] = this.fileElem!.toJson();
  }
  data['ex'] = this.ex;
  return data;
}