1
0
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:
2019-04-22 19:16:26 +02:00
parent b315b5ad77
commit 23f25e7704
14 changed files with 407 additions and 26 deletions

View 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});
}
}