Parse from a json
factory RichTextIcon.fromJson(Map<String, dynamic> json) => RichTextIcon( document: Document.fromJson(json['document']), width: json['width'], height: json['height'], );