toJson method
An attached end is {"wall": h, "k": k, "side": s}, h the wall's
handle as an int, k an int and s "left", "centre" or
"right"; a fixed end is {"point": [x, y]} (spec 11 D2).
Implementation
@override
Map<String, Object?> toJson() => {
'point': [x, y],
};