| 1234567891011121314151617181920212223 |
- import 'package:freezed_annotation/freezed_annotation.dart';
- import 'package:flutter/foundation.dart';
- part 'user.freezed.dart';
- part 'user.g.dart';
- @freezed
- class User with _$User {
- const factory User({
- String? country,
- String? userIp,
- String? accessToken,
- String? refreshToken,
- String? accountKey,
- String? accountPassword,
- String? createTime,
- bool? geographyEea,
- int? memberLevel, // 会员等级 1 游客 2 普通用户 3 会员
- String? account, // 用户名
- bool? activated, // 是否激活
- }) = _User;
- factory User.fromJson(Map<String, Object?> json) => _$UserFromJson(json);
- }
|