Line data Source code
1 : // GENERATED CODE - DO NOT MODIFY BY HAND 2 : 3 : part of 'schema_entity.dart'; 4 : 5 : // ************************************************************************** 6 : // TypeAdapterGenerator 7 : // ************************************************************************** 8 : 9 : class SchemaEntityAdapter extends TypeAdapter<SchemaEntity> { 10 : @override 11 : final int typeId = 0; 12 : 13 0 : @override 14 : SchemaEntity read(BinaryReader reader) { 15 0 : final numOfFields = reader.readByte(); 16 0 : final fields = <int, dynamic>{ 17 0 : for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(), 18 : }; 19 0 : return SchemaEntity( 20 0 : projectId: fields[0] as String, 21 0 : groups: (fields[1] as List)?.cast<HelperGroupEntity>(), 22 0 : schemaVersion: fields[2] as int, 23 : ); 24 : } 25 : 26 2 : @override 27 : void write(BinaryWriter writer, SchemaEntity obj) { 28 : writer 29 2 : ..writeByte(3) 30 2 : ..writeByte(0) 31 4 : ..write(obj.projectId) 32 2 : ..writeByte(1) 33 4 : ..write(obj.groups) 34 2 : ..writeByte(2) 35 4 : ..write(obj.schemaVersion); 36 : } 37 : 38 0 : @override 39 0 : int get hashCode => typeId.hashCode; 40 : 41 0 : @override 42 : bool operator ==(Object other) => 43 : identical(this, other) || 44 0 : other is SchemaEntityAdapter && 45 0 : runtimeType == other.runtimeType && 46 0 : typeId == other.typeId; 47 : }