Object to Map serializer
@override Map<String, dynamic> toJson() { return { '@type': 'vectorPathCommandLine', if (extra != null) '@extra': extra, 'end_point': end_point }; }