Created project base structure, state management, router and login

This commit is contained in:
Juan Gilsanz Polo
2024-02-21 23:53:22 +01:00
commit 460e13b2e9
168 changed files with 6966 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
class ServerInstance {
final String id;
final String method;
final String ipDomain;
final int? port;
final String? path;
final String token;
const ServerInstance({
required this.id,
required this.method,
required this.ipDomain,
this.port,
this.path,
required this.token,
});
factory ServerInstance.fromJson(Map<String, dynamic> data) => ServerInstance(
id: data['id'],
method: data['method'],
ipDomain: data['ipDomain'],
port: data['port'],
path: data['path'],
token: data['token'],
);
Map<String, dynamic> toJson() => {
"id": id,
"method": method,
"ipDomain": ipDomain,
"port": port,
"path": path,
"token": token,
};
}