toJson method
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);
}