toMap method

  1. @override
Map<String, dynamic> toMap()
override

Implementation

@override
Map<String, dynamic> toMap() {
  return {
    'type': 'text',
    'fontSize': fontSize,
    'color': color,
    'x': x,
    'y': y,
    'text': text,
  };
}