123456789101112131415161718192021 |
- /// Description: user model
- /// Time : 02/21/2024 Wednesday
- /// Author : liuyuqi.gov@msn.cn
- class UserModel {
- String username = "";
- String password = "";
- UserModel({required this.username, required this.password});
- UserModel.fromJson(Map<String, dynamic> json) {
- username = json['username'];
- password = json['password'];
- }
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = <String, dynamic>{};
- data['username'] = username;
- data['password'] = password;
- return data;
- }
- }
|