toJson method
Implementation
Map<String, Object?> toJson() {
var contextId = this.contextId;
var text = this.text;
var type = this.type;
final json = <String, Object?>{};
json[r'contextId'] = contextId;
if (text != null) {
json[r'text'] = text;
}
json[r'type'] = type;
return json;
}