// GENERATED CODE - DO NOT MODIFY BY HAND part of 'ContentHive.dart'; // ************************************************************************** // TypeAdapterGenerator // ************************************************************************** class ContentHiveAdapter extends TypeAdapter { @override final int typeId = 2; @override ContentHive read(BinaryReader reader) { final numOfFields = reader.readByte(); final fields = { for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(), }; return ContentHive( id: fields[0] as int, content: fields[1] as String, list: (fields[3] as List).cast(), ); } @override void write(BinaryWriter writer, ContentHive obj) { writer ..writeByte(3) ..writeByte(0) ..write(obj.id) ..writeByte(1) ..write(obj.content) ..writeByte(3) ..write(obj.list); } @override int get hashCode => typeId.hashCode; @override bool operator ==(Object other) => identical(this, other) || other is ContentHiveAdapter && runtimeType == other.runtimeType && typeId == other.typeId; } // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** ContentHive _$ContentHiveFromJson(Map json) => ContentHive( id: json['id'] as int, content: json['content'] as String, list: (json['list'] as List) .map((e) => ContentListModel.fromJson(e as Map)) .toList(), );