Outputs the attributes as a Map.
Map
@override Map<String, dynamic> toMap() => { ...super.toMap(), 'position': position.toMap(), };