Map<String, dynamic> toMap() { return { 'endpointNumber': endpointNumber, 'direction': direction, }; }