toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    "type": type,
    "align": align?.value, // Pega o value do enum Align
    "fontFormat": fontFormat?.value, // Pega o value do enum FontFormat
    "content": content,
    "height": height,
    "lines": lines,
  };
}