FormTextBlock.fromJson constructor

FormTextBlock.fromJson(
  1. dynamic json
)

Deserializes json into a FormTextBlock Object

Implementation

factory FormTextBlock.fromJson(dynamic json) => FormTextBlock(
      id: json['id'],
      text: json['text'],
      positionOnPage: json['fieldIndex'],
      type: json['type'],
      style: FormTextBlockStyle.values
          .firstWhere((e) => e.name == json['style']),
      pageId: json['pageId'],
    );