toJson method

Map<String, dynamic> toJson()

Serializes the FormTextBlock to a json map

Implementation

Map<String, dynamic> toJson() => {
      'id': id,
      'pageId': pageId,
      'fieldIndex': positionOnPage,
      'text': text,
      'type': type,
      'style': style.name,
    };