mobile-app/lib/models/authmodel.dart

19 lines
408 B
Dart
Raw Permalink Normal View History

2024-10-21 12:33:46 +00:00
class AuthModel {
String? username;
String? password;
AuthModel({this.username, this.password});
AuthModel.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;
}
}