// GENERATED CODE - DO NOT MODIFY BY HAND part of 'update_flight_booking_dto.dart'; // ************************************************************************** // BuiltValueGenerator // ************************************************************************** const UpdateFlightBookingDTOSeatTypeEnum _$updateFlightBookingDTOSeatTypeEnum_window = const UpdateFlightBookingDTOSeatTypeEnum._('window'); const UpdateFlightBookingDTOSeatTypeEnum _$updateFlightBookingDTOSeatTypeEnum_middle = const UpdateFlightBookingDTOSeatTypeEnum._('middle'); const UpdateFlightBookingDTOSeatTypeEnum _$updateFlightBookingDTOSeatTypeEnum_aisle = const UpdateFlightBookingDTOSeatTypeEnum._('aisle'); const UpdateFlightBookingDTOSeatTypeEnum _$updateFlightBookingDTOSeatTypeEnum_jumpseat = const UpdateFlightBookingDTOSeatTypeEnum._('jumpseat'); const UpdateFlightBookingDTOSeatTypeEnum _$updateFlightBookingDTOSeatTypeEnum_captain = const UpdateFlightBookingDTOSeatTypeEnum._('captain'); const UpdateFlightBookingDTOSeatTypeEnum _$updateFlightBookingDTOSeatTypeEnum_pilot = const UpdateFlightBookingDTOSeatTypeEnum._('pilot'); const UpdateFlightBookingDTOSeatTypeEnum _$updateFlightBookingDTOSeatTypeEnum_copilot = const UpdateFlightBookingDTOSeatTypeEnum._('copilot'); const UpdateFlightBookingDTOSeatTypeEnum _$updateFlightBookingDTOSeatTypeEnum_flightEngineer = const UpdateFlightBookingDTOSeatTypeEnum._('flightEngineer'); const UpdateFlightBookingDTOSeatTypeEnum _$updateFlightBookingDTOSeatTypeEnum_flightAttendant = const UpdateFlightBookingDTOSeatTypeEnum._('flightAttendant'); const UpdateFlightBookingDTOSeatTypeEnum _$updateFlightBookingDTOSeatTypeEnum_observer = const UpdateFlightBookingDTOSeatTypeEnum._('observer'); const UpdateFlightBookingDTOSeatTypeEnum _$updateFlightBookingDTOSeatTypeEnum_other = const UpdateFlightBookingDTOSeatTypeEnum._('other'); UpdateFlightBookingDTOSeatTypeEnum _$updateFlightBookingDTOSeatTypeEnumValueOf( String name) { switch (name) { case 'window': return _$updateFlightBookingDTOSeatTypeEnum_window; case 'middle': return _$updateFlightBookingDTOSeatTypeEnum_middle; case 'aisle': return _$updateFlightBookingDTOSeatTypeEnum_aisle; case 'jumpseat': return _$updateFlightBookingDTOSeatTypeEnum_jumpseat; case 'captain': return _$updateFlightBookingDTOSeatTypeEnum_captain; case 'pilot': return _$updateFlightBookingDTOSeatTypeEnum_pilot; case 'copilot': return _$updateFlightBookingDTOSeatTypeEnum_copilot; case 'flightEngineer': return _$updateFlightBookingDTOSeatTypeEnum_flightEngineer; case 'flightAttendant': return _$updateFlightBookingDTOSeatTypeEnum_flightAttendant; case 'observer': return _$updateFlightBookingDTOSeatTypeEnum_observer; case 'other': return _$updateFlightBookingDTOSeatTypeEnum_other; default: throw ArgumentError(name); } } final BuiltSet _$updateFlightBookingDTOSeatTypeEnumValues = BuiltSet< UpdateFlightBookingDTOSeatTypeEnum>(const [ _$updateFlightBookingDTOSeatTypeEnum_window, _$updateFlightBookingDTOSeatTypeEnum_middle, _$updateFlightBookingDTOSeatTypeEnum_aisle, _$updateFlightBookingDTOSeatTypeEnum_jumpseat, _$updateFlightBookingDTOSeatTypeEnum_captain, _$updateFlightBookingDTOSeatTypeEnum_pilot, _$updateFlightBookingDTOSeatTypeEnum_copilot, _$updateFlightBookingDTOSeatTypeEnum_flightEngineer, _$updateFlightBookingDTOSeatTypeEnum_flightAttendant, _$updateFlightBookingDTOSeatTypeEnum_observer, _$updateFlightBookingDTOSeatTypeEnum_other, ]); const UpdateFlightBookingDTOSeatingClassEnum _$updateFlightBookingDTOSeatingClassEnum_economy = const UpdateFlightBookingDTOSeatingClassEnum._('economy'); const UpdateFlightBookingDTOSeatingClassEnum _$updateFlightBookingDTOSeatingClassEnum_premiumEconomy = const UpdateFlightBookingDTOSeatingClassEnum._('premiumEconomy'); const UpdateFlightBookingDTOSeatingClassEnum _$updateFlightBookingDTOSeatingClassEnum_business = const UpdateFlightBookingDTOSeatingClassEnum._('business'); const UpdateFlightBookingDTOSeatingClassEnum _$updateFlightBookingDTOSeatingClassEnum_first = const UpdateFlightBookingDTOSeatingClassEnum._('first'); const UpdateFlightBookingDTOSeatingClassEnum _$updateFlightBookingDTOSeatingClassEnum_private = const UpdateFlightBookingDTOSeatingClassEnum._('private'); const UpdateFlightBookingDTOSeatingClassEnum _$updateFlightBookingDTOSeatingClassEnum_other = const UpdateFlightBookingDTOSeatingClassEnum._('other'); UpdateFlightBookingDTOSeatingClassEnum _$updateFlightBookingDTOSeatingClassEnumValueOf(String name) { switch (name) { case 'economy': return _$updateFlightBookingDTOSeatingClassEnum_economy; case 'premiumEconomy': return _$updateFlightBookingDTOSeatingClassEnum_premiumEconomy; case 'business': return _$updateFlightBookingDTOSeatingClassEnum_business; case 'first': return _$updateFlightBookingDTOSeatingClassEnum_first; case 'private': return _$updateFlightBookingDTOSeatingClassEnum_private; case 'other': return _$updateFlightBookingDTOSeatingClassEnum_other; default: throw ArgumentError(name); } } final BuiltSet _$updateFlightBookingDTOSeatingClassEnumValues = BuiltSet< UpdateFlightBookingDTOSeatingClassEnum>(const [ _$updateFlightBookingDTOSeatingClassEnum_economy, _$updateFlightBookingDTOSeatingClassEnum_premiumEconomy, _$updateFlightBookingDTOSeatingClassEnum_business, _$updateFlightBookingDTOSeatingClassEnum_first, _$updateFlightBookingDTOSeatingClassEnum_private, _$updateFlightBookingDTOSeatingClassEnum_other, ]); const UpdateFlightBookingDTOReasonEnum _$updateFlightBookingDTOReasonEnum_personal = const UpdateFlightBookingDTOReasonEnum._('personal'); const UpdateFlightBookingDTOReasonEnum _$updateFlightBookingDTOReasonEnum_business = const UpdateFlightBookingDTOReasonEnum._('business'); const UpdateFlightBookingDTOReasonEnum _$updateFlightBookingDTOReasonEnum_crew = const UpdateFlightBookingDTOReasonEnum._('crew'); const UpdateFlightBookingDTOReasonEnum _$updateFlightBookingDTOReasonEnum_training = const UpdateFlightBookingDTOReasonEnum._('training'); const UpdateFlightBookingDTOReasonEnum _$updateFlightBookingDTOReasonEnum_repositioning = const UpdateFlightBookingDTOReasonEnum._('repositioning'); const UpdateFlightBookingDTOReasonEnum _$updateFlightBookingDTOReasonEnum_other = const UpdateFlightBookingDTOReasonEnum._('other'); UpdateFlightBookingDTOReasonEnum _$updateFlightBookingDTOReasonEnumValueOf( String name) { switch (name) { case 'personal': return _$updateFlightBookingDTOReasonEnum_personal; case 'business': return _$updateFlightBookingDTOReasonEnum_business; case 'crew': return _$updateFlightBookingDTOReasonEnum_crew; case 'training': return _$updateFlightBookingDTOReasonEnum_training; case 'repositioning': return _$updateFlightBookingDTOReasonEnum_repositioning; case 'other': return _$updateFlightBookingDTOReasonEnum_other; default: throw ArgumentError(name); } } final BuiltSet _$updateFlightBookingDTOReasonEnumValues = BuiltSet< UpdateFlightBookingDTOReasonEnum>(const [ _$updateFlightBookingDTOReasonEnum_personal, _$updateFlightBookingDTOReasonEnum_business, _$updateFlightBookingDTOReasonEnum_crew, _$updateFlightBookingDTOReasonEnum_training, _$updateFlightBookingDTOReasonEnum_repositioning, _$updateFlightBookingDTOReasonEnum_other, ]); Serializer _$updateFlightBookingDTOSeatTypeEnumSerializer = _$UpdateFlightBookingDTOSeatTypeEnumSerializer(); Serializer _$updateFlightBookingDTOSeatingClassEnumSerializer = _$UpdateFlightBookingDTOSeatingClassEnumSerializer(); Serializer _$updateFlightBookingDTOReasonEnumSerializer = _$UpdateFlightBookingDTOReasonEnumSerializer(); class _$UpdateFlightBookingDTOSeatTypeEnumSerializer 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 [UpdateFlightBookingDTOSeatTypeEnum]; @override final String wireName = 'UpdateFlightBookingDTOSeatTypeEnum'; @override Object serialize( Serializers serializers, UpdateFlightBookingDTOSeatTypeEnum object, {FullType specifiedType = FullType.unspecified}) => _toWire[object.name] ?? object.name; @override UpdateFlightBookingDTOSeatTypeEnum deserialize( Serializers serializers, Object serialized, {FullType specifiedType = FullType.unspecified}) => UpdateFlightBookingDTOSeatTypeEnum.valueOf( _fromWire[serialized] ?? (serialized is String ? serialized : '')); } class _$UpdateFlightBookingDTOSeatingClassEnumSerializer 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 [ UpdateFlightBookingDTOSeatingClassEnum ]; @override final String wireName = 'UpdateFlightBookingDTOSeatingClassEnum'; @override Object serialize(Serializers serializers, UpdateFlightBookingDTOSeatingClassEnum object, {FullType specifiedType = FullType.unspecified}) => _toWire[object.name] ?? object.name; @override UpdateFlightBookingDTOSeatingClassEnum deserialize( Serializers serializers, Object serialized, {FullType specifiedType = FullType.unspecified}) => UpdateFlightBookingDTOSeatingClassEnum.valueOf( _fromWire[serialized] ?? (serialized is String ? serialized : '')); } class _$UpdateFlightBookingDTOReasonEnumSerializer 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 [UpdateFlightBookingDTOReasonEnum]; @override final String wireName = 'UpdateFlightBookingDTOReasonEnum'; @override Object serialize( Serializers serializers, UpdateFlightBookingDTOReasonEnum object, {FullType specifiedType = FullType.unspecified}) => _toWire[object.name] ?? object.name; @override UpdateFlightBookingDTOReasonEnum deserialize( Serializers serializers, Object serialized, {FullType specifiedType = FullType.unspecified}) => UpdateFlightBookingDTOReasonEnum.valueOf( _fromWire[serialized] ?? (serialized is String ? serialized : '')); } class _$UpdateFlightBookingDTO extends UpdateFlightBookingDTO { @override final JsonObject? bookingCode; @override final JsonObject? seatNumber; @override final UpdateFlightBookingDTOSeatTypeEnum? seatType; @override final UpdateFlightBookingDTOSeatingClassEnum? seatingClass; @override final UpdateFlightBookingDTOReasonEnum? reason; @override final JsonObject? notes; factory _$UpdateFlightBookingDTO( [void Function(UpdateFlightBookingDTOBuilder)? updates]) => (UpdateFlightBookingDTOBuilder()..update(updates))._build(); _$UpdateFlightBookingDTO._( {this.bookingCode, this.seatNumber, this.seatType, this.seatingClass, this.reason, this.notes}) : super._(); @override UpdateFlightBookingDTO rebuild( void Function(UpdateFlightBookingDTOBuilder) updates) => (toBuilder()..update(updates)).build(); @override UpdateFlightBookingDTOBuilder toBuilder() => UpdateFlightBookingDTOBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is UpdateFlightBookingDTO && 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, 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'UpdateFlightBookingDTO') ..add('bookingCode', bookingCode) ..add('seatNumber', seatNumber) ..add('seatType', seatType) ..add('seatingClass', seatingClass) ..add('reason', reason) ..add('notes', notes)) .toString(); } } class UpdateFlightBookingDTOBuilder implements Builder { _$UpdateFlightBookingDTO? _$v; JsonObject? _bookingCode; JsonObject? get bookingCode => _$this._bookingCode; set bookingCode(JsonObject? bookingCode) => _$this._bookingCode = bookingCode; JsonObject? _seatNumber; JsonObject? get seatNumber => _$this._seatNumber; set seatNumber(JsonObject? seatNumber) => _$this._seatNumber = seatNumber; UpdateFlightBookingDTOSeatTypeEnum? _seatType; UpdateFlightBookingDTOSeatTypeEnum? get seatType => _$this._seatType; set seatType(UpdateFlightBookingDTOSeatTypeEnum? seatType) => _$this._seatType = seatType; UpdateFlightBookingDTOSeatingClassEnum? _seatingClass; UpdateFlightBookingDTOSeatingClassEnum? get seatingClass => _$this._seatingClass; set seatingClass(UpdateFlightBookingDTOSeatingClassEnum? seatingClass) => _$this._seatingClass = seatingClass; UpdateFlightBookingDTOReasonEnum? _reason; UpdateFlightBookingDTOReasonEnum? get reason => _$this._reason; set reason(UpdateFlightBookingDTOReasonEnum? reason) => _$this._reason = reason; JsonObject? _notes; JsonObject? get notes => _$this._notes; set notes(JsonObject? notes) => _$this._notes = notes; UpdateFlightBookingDTOBuilder() { UpdateFlightBookingDTO._defaults(this); } UpdateFlightBookingDTOBuilder get _$this { final $v = _$v; if ($v != null) { _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(UpdateFlightBookingDTO other) { _$v = other as _$UpdateFlightBookingDTO; } @override void update(void Function(UpdateFlightBookingDTOBuilder)? updates) { if (updates != null) updates(this); } @override UpdateFlightBookingDTO build() => _build(); _$UpdateFlightBookingDTO _build() { final _$result = _$v ?? _$UpdateFlightBookingDTO._( 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