step 9 : listing history scan dan pull to refresh, perbaikan auth model add host
This commit is contained in:
@@ -1,14 +1,17 @@
|
||||
class AuthModel {
|
||||
final String token;
|
||||
final String host;
|
||||
final UserModel model;
|
||||
|
||||
AuthModel({
|
||||
required this.host,
|
||||
required this.token,
|
||||
required this.model,
|
||||
});
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return {
|
||||
'host':host,
|
||||
'token': token,
|
||||
'model': model.toJson(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user