ODF/lib/bean/login_bean.dart
2025-09-21 22:07:13 +08:00

17 lines
393 B
Dart

import 'package:json_annotation/json_annotation.dart';
part 'login_bean.g.dart';
@JsonSerializable(explicitToJson: true)
class LoginBean {
String? jwt;
int? userId;
String? userName;
LoginBean(this.jwt, this.userId, this.userName);
factory LoginBean.fromJson(Map<String, dynamic> json) => _$LoginBeanFromJson(json);
Map<String, dynamic> toJson() => _$LoginBeanToJson(this);
}