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.
aku_new_community/lib/models/login/china_region_model.g.dart

61 lines
1.7 KiB

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