toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'type'] = this.type;
if (this.text != null) {
json[r'text'] = this.text;
} else {
json[r'text'] = null;
}
if (this.annotations != null) {
json[r'annotations'] = this.annotations;
} else {
json[r'annotations'] = null;
}
if (this.href != null) {
json[r'href'] = this.href;
} else {
json[r'href'] = null;
}
return json;
}