toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  if (this.templateId != null) {
    data['templateId'] = this.templateId!.toJson();
  }
  data['content'] = this.content;
  data['display'] = this.display;
  if (this.json != null) {
    data['json'] = this.json!.toJson();
  }
  data['key'] = this.key;
  data['url'] = this.url;
  return data;
}