LinkPreviewOptions.fromJson constructor
Creates an instance of LinkPreviewOptions from JSON data.
Implementation
factory LinkPreviewOptions.fromJson(Map<String, dynamic> json) {
return LinkPreviewOptions(
isDisabled: json['is_disabled'],
url: json['url'],
preferSmallMedia: json['prefer_small_media'],
preferLargeMedia: json['prefer_large_media'],
showAboveText: json['show_above_text'],
);
}