toJson method

Map<String, dynamic> toJson()

Creates an instance of LinkPreviewOptions from JSON data.

Implementation

Map<String, dynamic> toJson() {
  return {
    'is_disabled': isDisabled,
    'url': url,
    'prefer_small_media': preferSmallMedia,
    'prefer_large_media': preferLargeMedia,
    'show_above_text': showAboveText,
  }..removeWhere(_nullFilter);
}