toJson method
Implementation
@override
Map<String, dynamic> toJson() {
Map<String, dynamic> map = {'path': path.toString()};
if (text != null) {
map['text'] = text;
}
if (schema != null) {
map['schema'] = schema!.toJson();
}
if (fallback != null) {
map['fallback'] = fallback!;
}
return map;
}