toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'path': path,
    'row': position.y,
    'column': position.x,
    'width': size.x,
    'height': size.y,
  };
}