toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'title': title,
  'url': url,
  if (displayUrl != null) 'display_url': displayUrl,
  if (snippet != null) 'snippet': snippet,
};