serialize method

Map<String, dynamic> serialize()

Implementation

Map<String, dynamic> serialize() {
  return {
    'rect': rect.serialize(),
    'text': text,
  };
}