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.

39 lines
842 B

3 years ago
import 'package:json_annotation/json_annotation.dart';
import 'package:equatable/equatable.dart';
part 'user_info_model.g.dart';
@JsonSerializable()
class UserInfoModel extends Equatable {
final String inviteCode;
final String nickname;
final String headImg;
final int gender;
final String phone;
final int level;
factory UserInfoModel.fromJson(Map<String, dynamic> json) =>
_$UserInfoModelFromJson(json);
Map<String, dynamic> toJson() => _$UserInfoModelToJson(this);
const UserInfoModel({
required this.inviteCode,
required this.nickname,
required this.headImg,
required this.gender,
required this.phone,
required this.level,
});
@override
List<Object?> get props => [
inviteCode,
nickname,
headImg,
gender,
phone,
level,
];
}