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/history_login_model.dart

23 lines
622 B

3 years ago
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;
3 years ago
@HiveField(1)
CommunityModel? communityModel;
3 years ago
factory HistoryLoginModel.fromJson(Map<String, dynamic> json) =>
_$HistoryLoginModelFromJson(json);
HistoryLoginModel({
3 years ago
required this.cityModel,
this.communityModel,
3 years ago
});
}