RichTextProp.fromJson constructor

RichTextProp.fromJson(
  1. Map<String, dynamic> json
)

Create a new rich text instance from json.

Receive a json from where the information is extracted.

Implementation

RichTextProp.fromJson(Map<String, dynamic> json)
    : this.content = Text.fromListJson(
          json[propertyTypeToString(PropertiesTypes.RichText)] is List
              ? json[propertyTypeToString(PropertiesTypes.RichText)] as List
              : []),
      super(id: json['id']);