mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-07-01 22:23:29 +00:00
Can sign in user
This commit is contained in:
23
lib/models/login_tokens.dart
Normal file
23
lib/models/login_tokens.dart
Normal file
@ -0,0 +1,23 @@
|
||||
import 'dart:convert';
|
||||
|
||||
/// Login tokens model
|
||||
///
|
||||
/// @author Pierre HUBERT
|
||||
|
||||
class LoginTokens {
|
||||
final String tokenOne;
|
||||
final String tokenTwo;
|
||||
|
||||
const LoginTokens(this.tokenOne, this.tokenTwo)
|
||||
: assert(tokenOne != null),
|
||||
assert(tokenTwo != null);
|
||||
|
||||
LoginTokens.fromJSON(Map<String, dynamic> json)
|
||||
: tokenOne = json["token_one"],
|
||||
tokenTwo = json["token_two"];
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return jsonEncode({"token_one": tokenOne, "token_two": tokenTwo});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user