This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
LocalSpend-Tracker/lib/model/json/login_model.dart

15 lines
335 B
Dart

class LoginModel {
final String userName;
final String token;
LoginModel(this.userName, this.token);
LoginModel.fromJson(Map<String, dynamic> json)
: userName = json['display_name'],
token = json['session_key'];
Map<String, dynamic> toJson() => {
'name': userName,
'token': token,
};
}