Create SendToken on login
This commit is contained in:
@@ -40,6 +40,23 @@ class KeyToken {
|
||||
}
|
||||
}
|
||||
|
||||
class KeyTokenWithToken {
|
||||
final KeyToken keyToken;
|
||||
final String token;
|
||||
|
||||
KeyTokenWithToken({
|
||||
required this.keyToken,
|
||||
required this.token,
|
||||
});
|
||||
|
||||
factory KeyTokenWithToken.fromJson(Map<String, dynamic> json) {
|
||||
return KeyTokenWithToken(
|
||||
keyToken: KeyToken.fromJson(json),
|
||||
token: json['token'] as String,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class KeyTokenPreview {
|
||||
final String keytokenID;
|
||||
final String name;
|
||||
|
Reference in New Issue
Block a user