You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							53 lines
						
					
					
						
							1.4 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							53 lines
						
					
					
						
							1.4 KiB
						
					
					
				
								// GENERATED CODE - DO NOT MODIFY BY HAND
							 | 
						|
								
							 | 
						|
								part of 'level_entity.dart';
							 | 
						|
								
							 | 
						|
								// **************************************************************************
							 | 
						|
								// TypeAdapterGenerator
							 | 
						|
								// **************************************************************************
							 | 
						|
								
							 | 
						|
								class LevelEntityAdapter extends TypeAdapter<LevelEntity> {
							 | 
						|
								  @override
							 | 
						|
								  final int typeId = 1;
							 | 
						|
								
							 | 
						|
								  @override
							 | 
						|
								  LevelEntity read(BinaryReader reader) {
							 | 
						|
								    final numOfFields = reader.readByte();
							 | 
						|
								    final fields = <int, dynamic>{
							 | 
						|
								      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
							 | 
						|
								    };
							 | 
						|
								    return LevelEntity(
							 | 
						|
								      id: fields[0] as int?,
							 | 
						|
								      order: fields[1] as int?,
							 | 
						|
								      title: fields[2] as String?,
							 | 
						|
								      questions: (fields[3] as List?)?.cast<QuestionEntity>(),
							 | 
						|
								      hadith: (fields[4] as List?)?.cast<HadithEntity>(),
							 | 
						|
								    );
							 | 
						|
								  }
							 | 
						|
								
							 | 
						|
								  @override
							 | 
						|
								  void write(BinaryWriter writer, LevelEntity obj) {
							 | 
						|
								    writer
							 | 
						|
								      ..writeByte(5)
							 | 
						|
								      ..writeByte(0)
							 | 
						|
								      ..write(obj.id)
							 | 
						|
								      ..writeByte(1)
							 | 
						|
								      ..write(obj.order)
							 | 
						|
								      ..writeByte(2)
							 | 
						|
								      ..write(obj.title)
							 | 
						|
								      ..writeByte(3)
							 | 
						|
								      ..write(obj.questions)
							 | 
						|
								      ..writeByte(4)
							 | 
						|
								      ..write(obj.hadith);
							 | 
						|
								  }
							 | 
						|
								
							 | 
						|
								  @override
							 | 
						|
								  int get hashCode => typeId.hashCode;
							 | 
						|
								
							 | 
						|
								  @override
							 | 
						|
								  bool operator ==(Object other) =>
							 | 
						|
								      identical(this, other) ||
							 | 
						|
								      other is LevelEntityAdapter &&
							 | 
						|
								          runtimeType == other.runtimeType &&
							 | 
						|
								          typeId == other.typeId;
							 | 
						|
								}
							 |