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.
23 lines
622 B
23 lines
622 B
import 'package:aku_new_community/models/login/community_model.dart';
|
|
import 'package:aku_new_community/models/login/picked_city_model.dart';
|
|
import 'package:hive/hive.dart';
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'history_login_model.g.dart';
|
|
|
|
@JsonSerializable()
|
|
@HiveType(typeId: 4)
|
|
class HistoryLoginModel {
|
|
@HiveField(0)
|
|
PickedCityModel cityModel;
|
|
@HiveField(1)
|
|
CommunityModel? communityModel;
|
|
factory HistoryLoginModel.fromJson(Map<String, dynamic> json) =>
|
|
_$HistoryLoginModelFromJson(json);
|
|
|
|
HistoryLoginModel({
|
|
required this.cityModel,
|
|
this.communityModel,
|
|
});
|
|
}
|