LinkPreview.fromJson constructor

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

Creates an instance of LinkPreview from a map json.

This map json should contain all the fields necessary to instantiate the class.

Implementation

factory LinkPreview.fromJson(Map<String, Object?> json) =>
    _$LinkPreviewFromJson(json);