Paragraph.fromJson constructor

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

Implementation

factory Paragraph.fromJson(Map<String, dynamic> json) {
  final p = _$ParagraphFromJson(json);
  p.textAlign = (json['textAlign'] as String?) ?? 'left';
  p.indent = (json['indent'] as int?) ?? 0;
  p.styleName = json['styleName'] as String?;
  return p;
}