toJson method

  1. @override
Map<String, dynamic> toJson()
override

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;
}