toJson method

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

Implementation

@override
Map<String, dynamic> toJson() {
  var data = <String, dynamic>{};
  data['title'] = title;
  data['favicon'] = favicon;
  data['url'] = url;
  data['source'] = source;
  data['desc'] = desc;
  data['_id'] = sId;
  data['score'] = score;
  data['position'] = position;
  return data;
}