import 'package:json_annotation/json_annotation.dart'; part 'user_entity.g.dart'; @JsonSerializable(explicitToJson: true) class UserEntity { UserEntity(); String? account; String? avatar; String? expiration; String? expire; String? mobile; String? name; String? refreshToken; String? token; String? tokenType; String? userId; String? userType; String? workDescribe; factory UserEntity.fromJson(Map json) => _$UserEntityFromJson(json); Map toJson() => _$UserEntityToJson(this); }