RichTextLeafImage.fromJson constructor
RichTextLeafImage.fromJson(
- JSONMap json
Implementation
factory RichTextLeafImage.fromJson(JSONMap json) {
json = JSONMap.from(json["attrs"]);
return RichTextLeafImage(
id: json["id"],
imageUrl: Uri.parse(json["src"]),
title: json["title"],
source: json["source"],
alt: json["alt"],
copyright: json["copyright"],
metadata: JSONMap.from(tryCast(json["meta_data"]) ?? {}),
marks: RichTextLeafMarkable.marksFromJson(json),
);
}