toJson method
Implementation
Map<String, Object?> toJson() {
var id = this.id;
var img = this.img;
var key = this.key;
var keyHtml = this.keyHtml;
var summary = this.summary;
var summaryText = this.summaryText;
final json = <String, Object?>{};
if (id != null) {
json[r'id'] = id;
}
if (img != null) {
json[r'img'] = img;
}
if (key != null) {
json[r'key'] = key;
}
if (keyHtml != null) {
json[r'keyHtml'] = keyHtml;
}
if (summary != null) {
json[r'summary'] = summary;
}
if (summaryText != null) {
json[r'summaryText'] = summaryText;
}
return json;
}