// GENERATED CODE - DO NOT MODIFY BY HAND part of 'create_flight_booking_dto.dart'; // ************************************************************************** // BuiltValueGenerator // ************************************************************************** const CreateFlightBookingDTOSeatTypeEnum _$createFlightBookingDTOSeatTypeEnum_window = const CreateFlightBookingDTOSeatTypeEnum._('window'); const CreateFlightBookingDTOSeatTypeEnum _$createFlightBookingDTOSeatTypeEnum_middle = const CreateFlightBookingDTOSeatTypeEnum._('middle'); const CreateFlightBookingDTOSeatTypeEnum _$createFlightBookingDTOSeatTypeEnum_aisle = const CreateFlightBookingDTOSeatTypeEnum._('aisle'); const CreateFlightBookingDTOSeatTypeEnum _$createFlightBookingDTOSeatTypeEnum_jumpseat = const CreateFlightBookingDTOSeatTypeEnum._('jumpseat'); const CreateFlightBookingDTOSeatTypeEnum _$createFlightBookingDTOSeatTypeEnum_captain = const CreateFlightBookingDTOSeatTypeEnum._('captain'); const CreateFlightBookingDTOSeatTypeEnum _$createFlightBookingDTOSeatTypeEnum_pilot = const CreateFlightBookingDTOSeatTypeEnum._('pilot'); const CreateFlightBookingDTOSeatTypeEnum _$createFlightBookingDTOSeatTypeEnum_copilot = const CreateFlightBookingDTOSeatTypeEnum._('copilot'); const CreateFlightBookingDTOSeatTypeEnum _$createFlightBookingDTOSeatTypeEnum_flightEngineer = const CreateFlightBookingDTOSeatTypeEnum._('flightEngineer'); const CreateFlightBookingDTOSeatTypeEnum _$createFlightBookingDTOSeatTypeEnum_flightAttendant = const CreateFlightBookingDTOSeatTypeEnum._('flightAttendant'); const CreateFlightBookingDTOSeatTypeEnum _$createFlightBookingDTOSeatTypeEnum_observer = const CreateFlightBookingDTOSeatTypeEnum._('observer'); const CreateFlightBookingDTOSeatTypeEnum _$createFlightBookingDTOSeatTypeEnum_other = const CreateFlightBookingDTOSeatTypeEnum._('other'); CreateFlightBookingDTOSeatTypeEnum _$createFlightBookingDTOSeatTypeEnumValueOf( String name) { switch (name) { case 'window': return _$createFlightBookingDTOSeatTypeEnum_window; case 'middle': return _$createFlightBookingDTOSeatTypeEnum_middle; case 'aisle': return _$createFlightBookingDTOSeatTypeEnum_aisle; case 'jumpseat': return _$createFlightBookingDTOSeatTypeEnum_jumpseat; case 'captain': return _$createFlightBookingDTOSeatTypeEnum_captain; case 'pilot': return _$createFlightBookingDTOSeatTypeEnum_pilot; case 'copilot': return _$createFlightBookingDTOSeatTypeEnum_copilot; case 'flightEngineer': return _$createFlightBookingDTOSeatTypeEnum_flightEngineer; case 'flightAttendant': return _$createFlightBookingDTOSeatTypeEnum_flightAttendant; case 'observer': return _$createFlightBookingDTOSeatTypeEnum_observer; case 'other': return _$createFlightBookingDTOSeatTypeEnum_other; default: throw ArgumentError(name); } } final BuiltSet _$createFlightBookingDTOSeatTypeEnumValues = BuiltSet< CreateFlightBookingDTOSeatTypeEnum>(const [ _$createFlightBookingDTOSeatTypeEnum_window, _$createFlightBookingDTOSeatTypeEnum_middle, _$createFlightBookingDTOSeatTypeEnum_aisle, _$createFlightBookingDTOSeatTypeEnum_jumpseat, _$createFlightBookingDTOSeatTypeEnum_captain, _$createFlightBookingDTOSeatTypeEnum_pilot, _$createFlightBookingDTOSeatTypeEnum_copilot, _$createFlightBookingDTOSeatTypeEnum_flightEngineer, _$createFlightBookingDTOSeatTypeEnum_flightAttendant, _$createFlightBookingDTOSeatTypeEnum_observer, _$createFlightBookingDTOSeatTypeEnum_other, ]); const CreateFlightBookingDTOSeatingClassEnum _$createFlightBookingDTOSeatingClassEnum_economy = const CreateFlightBookingDTOSeatingClassEnum._('economy'); const CreateFlightBookingDTOSeatingClassEnum _$createFlightBookingDTOSeatingClassEnum_premiumEconomy = const CreateFlightBookingDTOSeatingClassEnum._('premiumEconomy'); const CreateFlightBookingDTOSeatingClassEnum _$createFlightBookingDTOSeatingClassEnum_business = const CreateFlightBookingDTOSeatingClassEnum._('business'); const CreateFlightBookingDTOSeatingClassEnum _$createFlightBookingDTOSeatingClassEnum_first = const CreateFlightBookingDTOSeatingClassEnum._('first'); const CreateFlightBookingDTOSeatingClassEnum _$createFlightBookingDTOSeatingClassEnum_private = const CreateFlightBookingDTOSeatingClassEnum._('private'); const CreateFlightBookingDTOSeatingClassEnum _$createFlightBookingDTOSeatingClassEnum_other = const CreateFlightBookingDTOSeatingClassEnum._('other'); CreateFlightBookingDTOSeatingClassEnum _$createFlightBookingDTOSeatingClassEnumValueOf(String name) { switch (name) { case 'economy': return _$createFlightBookingDTOSeatingClassEnum_economy; case 'premiumEconomy': return _$createFlightBookingDTOSeatingClassEnum_premiumEconomy; case 'business': return _$createFlightBookingDTOSeatingClassEnum_business; case 'first': return _$createFlightBookingDTOSeatingClassEnum_first; case 'private': return _$createFlightBookingDTOSeatingClassEnum_private; case 'other': return _$createFlightBookingDTOSeatingClassEnum_other; default: throw ArgumentError(name); } } final BuiltSet _$createFlightBookingDTOSeatingClassEnumValues = BuiltSet< CreateFlightBookingDTOSeatingClassEnum>(const [ _$createFlightBookingDTOSeatingClassEnum_economy, _$createFlightBookingDTOSeatingClassEnum_premiumEconomy, _$createFlightBookingDTOSeatingClassEnum_business, _$createFlightBookingDTOSeatingClassEnum_first, _$createFlightBookingDTOSeatingClassEnum_private, _$createFlightBookingDTOSeatingClassEnum_other, ]); const CreateFlightBookingDTOReasonEnum _$createFlightBookingDTOReasonEnum_personal = const CreateFlightBookingDTOReasonEnum._('personal'); const CreateFlightBookingDTOReasonEnum _$createFlightBookingDTOReasonEnum_business = const CreateFlightBookingDTOReasonEnum._('business'); const CreateFlightBookingDTOReasonEnum _$createFlightBookingDTOReasonEnum_crew = const CreateFlightBookingDTOReasonEnum._('crew'); const CreateFlightBookingDTOReasonEnum _$createFlightBookingDTOReasonEnum_training = const CreateFlightBookingDTOReasonEnum._('training'); const CreateFlightBookingDTOReasonEnum _$createFlightBookingDTOReasonEnum_repositioning = const CreateFlightBookingDTOReasonEnum._('repositioning'); const CreateFlightBookingDTOReasonEnum _$createFlightBookingDTOReasonEnum_other = const CreateFlightBookingDTOReasonEnum._('other'); CreateFlightBookingDTOReasonEnum _$createFlightBookingDTOReasonEnumValueOf( String name) { switch (name) { case 'personal': return _$createFlightBookingDTOReasonEnum_personal; case 'business': return _$createFlightBookingDTOReasonEnum_business; case 'crew': return _$createFlightBookingDTOReasonEnum_crew; case 'training': return _$createFlightBookingDTOReasonEnum_training; case 'repositioning': return _$createFlightBookingDTOReasonEnum_repositioning; case 'other': return _$createFlightBookingDTOReasonEnum_other; default: throw ArgumentError(name); } } final BuiltSet _$createFlightBookingDTOReasonEnumValues = BuiltSet< CreateFlightBookingDTOReasonEnum>(const [ _$createFlightBookingDTOReasonEnum_personal, _$createFlightBookingDTOReasonEnum_business, _$createFlightBookingDTOReasonEnum_crew, _$createFlightBookingDTOReasonEnum_training, _$createFlightBookingDTOReasonEnum_repositioning, _$createFlightBookingDTOReasonEnum_other, ]); Serializer _$createFlightBookingDTOSeatTypeEnumSerializer = _$CreateFlightBookingDTOSeatTypeEnumSerializer(); Serializer _$createFlightBookingDTOSeatingClassEnumSerializer = _$CreateFlightBookingDTOSeatingClassEnumSerializer(); Serializer _$createFlightBookingDTOReasonEnumSerializer = _$CreateFlightBookingDTOReasonEnumSerializer(); class _$CreateFlightBookingDTOSeatTypeEnumSerializer implements PrimitiveSerializer { static const Map _toWire = const { 'window': 'window', 'middle': 'middle', 'aisle': 'aisle', 'jumpseat': 'jumpseat', 'captain': 'captain', 'pilot': 'pilot', 'copilot': 'copilot', 'flightEngineer': 'flight_engineer', 'flightAttendant': 'flight_attendant', 'observer': 'observer', 'other': 'other', }; static const Map _fromWire = const { 'window': 'window', 'middle': 'middle', 'aisle': 'aisle', 'jumpseat': 'jumpseat', 'captain': 'captain', 'pilot': 'pilot', 'copilot': 'copilot', 'flight_engineer': 'flightEngineer', 'flight_attendant': 'flightAttendant', 'observer': 'observer', 'other': 'other', }; @override final Iterable types = const [CreateFlightBookingDTOSeatTypeEnum]; @override final String wireName = 'CreateFlightBookingDTOSeatTypeEnum'; @override Object serialize( Serializers serializers, CreateFlightBookingDTOSeatTypeEnum object, {FullType specifiedType = FullType.unspecified}) => _toWire[object.name] ?? object.name; @override CreateFlightBookingDTOSeatTypeEnum deserialize( Serializers serializers, Object serialized, {FullType specifiedType = FullType.unspecified}) => CreateFlightBookingDTOSeatTypeEnum.valueOf( _fromWire[serialized] ?? (serialized is String ? serialized : '')); } class _$CreateFlightBookingDTOSeatingClassEnumSerializer implements PrimitiveSerializer { static const Map _toWire = const { 'economy': 'economy', 'premiumEconomy': 'premium_economy', 'business': 'business', 'first': 'first', 'private': 'private', 'other': 'other', }; static const Map _fromWire = const { 'economy': 'economy', 'premium_economy': 'premiumEconomy', 'business': 'business', 'first': 'first', 'private': 'private', 'other': 'other', }; @override final Iterable types = const [ CreateFlightBookingDTOSeatingClassEnum ]; @override final String wireName = 'CreateFlightBookingDTOSeatingClassEnum'; @override Object serialize(Serializers serializers, CreateFlightBookingDTOSeatingClassEnum object, {FullType specifiedType = FullType.unspecified}) => _toWire[object.name] ?? object.name; @override CreateFlightBookingDTOSeatingClassEnum deserialize( Serializers serializers, Object serialized, {FullType specifiedType = FullType.unspecified}) => CreateFlightBookingDTOSeatingClassEnum.valueOf( _fromWire[serialized] ?? (serialized is String ? serialized : '')); } class _$CreateFlightBookingDTOReasonEnumSerializer implements PrimitiveSerializer { static const Map _toWire = const { 'personal': 'personal', 'business': 'business', 'crew': 'crew', 'training': 'training', 'repositioning': 'repositioning', 'other': 'other', }; static const Map _fromWire = const { 'personal': 'personal', 'business': 'business', 'crew': 'crew', 'training': 'training', 'repositioning': 'repositioning', 'other': 'other', }; @override final Iterable types = const [CreateFlightBookingDTOReasonEnum]; @override final String wireName = 'CreateFlightBookingDTOReasonEnum'; @override Object serialize( Serializers serializers, CreateFlightBookingDTOReasonEnum object, {FullType specifiedType = FullType.unspecified}) => _toWire[object.name] ?? object.name; @override CreateFlightBookingDTOReasonEnum deserialize( Serializers serializers, Object serialized, {FullType specifiedType = FullType.unspecified}) => CreateFlightBookingDTOReasonEnum.valueOf( _fromWire[serialized] ?? (serialized is String ? serialized : '')); } class _$CreateFlightBookingDTO extends CreateFlightBookingDTO { @override final String flightId; @override final String? bookingCode; @override final String? seatNumber; @override final CreateFlightBookingDTOSeatTypeEnum? seatType; @override final CreateFlightBookingDTOSeatingClassEnum? seatingClass; @override final CreateFlightBookingDTOReasonEnum? reason; @override final String? notes; factory _$CreateFlightBookingDTO( [void Function(CreateFlightBookingDTOBuilder)? updates]) => (CreateFlightBookingDTOBuilder()..update(updates))._build(); _$CreateFlightBookingDTO._( {required this.flightId, this.bookingCode, this.seatNumber, this.seatType, this.seatingClass, this.reason, this.notes}) : super._(); @override CreateFlightBookingDTO rebuild( void Function(CreateFlightBookingDTOBuilder) updates) => (toBuilder()..update(updates)).build(); @override CreateFlightBookingDTOBuilder toBuilder() => CreateFlightBookingDTOBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is CreateFlightBookingDTO && flightId == other.flightId && bookingCode == other.bookingCode && seatNumber == other.seatNumber && seatType == other.seatType && seatingClass == other.seatingClass && reason == other.reason && notes == other.notes; } @override int get hashCode { var _$hash = 0; _$hash = $jc(_$hash, flightId.hashCode); _$hash = $jc(_$hash, bookingCode.hashCode); _$hash = $jc(_$hash, seatNumber.hashCode); _$hash = $jc(_$hash, seatType.hashCode); _$hash = $jc(_$hash, seatingClass.hashCode); _$hash = $jc(_$hash, reason.hashCode); _$hash = $jc(_$hash, notes.hashCode); _$hash = $jf(_$hash); return _$hash; } @override String toString() { return (newBuiltValueToStringHelper(r'CreateFlightBookingDTO') ..add('flightId', flightId) ..add('bookingCode', bookingCode) ..add('seatNumber', seatNumber) ..add('seatType', seatType) ..add('seatingClass', seatingClass) ..add('reason', reason) ..add('notes', notes)) .toString(); } } class CreateFlightBookingDTOBuilder implements Builder { _$CreateFlightBookingDTO? _$v; String? _flightId; String? get flightId => _$this._flightId; set flightId(String? flightId) => _$this._flightId = flightId; String? _bookingCode; String? get bookingCode => _$this._bookingCode; set bookingCode(String? bookingCode) => _$this._bookingCode = bookingCode; String? _seatNumber; String? get seatNumber => _$this._seatNumber; set seatNumber(String? seatNumber) => _$this._seatNumber = seatNumber; CreateFlightBookingDTOSeatTypeEnum? _seatType; CreateFlightBookingDTOSeatTypeEnum? get seatType => _$this._seatType; set seatType(CreateFlightBookingDTOSeatTypeEnum? seatType) => _$this._seatType = seatType; CreateFlightBookingDTOSeatingClassEnum? _seatingClass; CreateFlightBookingDTOSeatingClassEnum? get seatingClass => _$this._seatingClass; set seatingClass(CreateFlightBookingDTOSeatingClassEnum? seatingClass) => _$this._seatingClass = seatingClass; CreateFlightBookingDTOReasonEnum? _reason; CreateFlightBookingDTOReasonEnum? get reason => _$this._reason; set reason(CreateFlightBookingDTOReasonEnum? reason) => _$this._reason = reason; String? _notes; String? get notes => _$this._notes; set notes(String? notes) => _$this._notes = notes; CreateFlightBookingDTOBuilder() { CreateFlightBookingDTO._defaults(this); } CreateFlightBookingDTOBuilder get _$this { final $v = _$v; if ($v != null) { _flightId = $v.flightId; _bookingCode = $v.bookingCode; _seatNumber = $v.seatNumber; _seatType = $v.seatType; _seatingClass = $v.seatingClass; _reason = $v.reason; _notes = $v.notes; _$v = null; } return this; } @override void replace(CreateFlightBookingDTO other) { _$v = other as _$CreateFlightBookingDTO; } @override void update(void Function(CreateFlightBookingDTOBuilder)? updates) { if (updates != null) updates(this); } @override CreateFlightBookingDTO build() => _build(); _$CreateFlightBookingDTO _build() { final _$result = _$v ?? _$CreateFlightBookingDTO._( flightId: BuiltValueNullFieldError.checkNotNull( flightId, r'CreateFlightBookingDTO', 'flightId'), bookingCode: bookingCode, seatNumber: seatNumber, seatType: seatType, seatingClass: seatingClass, reason: reason, notes: notes, ); replace(_$result); return _$result; } } // ignore_for_file: deprecated_member_use_from_same_package,type=lint