toMap method

Map<String, dynamic> toMap()

Converts the AccessiblePosition instance to a map representation.

Implementation

Map<String, dynamic> toMap() {
  return {
    'id': id,
    'label': label,
    'hint': hint,
    'position': {
      'x': dx,
      'y': dy,
      'width': width,
      'height': height,
    },
  };
}