GetUrlPreviewResponse.fromJson constructor

GetUrlPreviewResponse.fromJson(
  1. Map<String, Object?> json
)

Implementation

GetUrlPreviewResponse.fromJson(Map<String, Object?> json)
    : sdnImageSize =
          ((v) => v != null ? v as int : null)(json['sdn:image:size']),
      ogImage = ((v) =>
          v != null ? Uri.parse(v as String) : null)(json['og:image']);