Text.fromJson constructor
Implementation
Text.fromJson(Map<String, dynamic> json)
: bold = json['bold'] ?? false,
color = json['color'] ?? '#000000',
fontFamily = json['fontfamily'] ?? 'sans-serif',
hAlign = json['halign'] ?? 'left',
italic = json['italic'] ?? false,
kerning = json['kerning'] ?? true,
pixelSize = int.tryParse(json['pixelsize'].toString()) ?? 16,
strikeout = json['strikeout'] ?? false,
text = json['text'] ?? '',
underline = json['underline'] ?? false,
vAlign = json['valign'] ?? 'top',
wrap = json['wrap'] ?? false;