Implement login

This commit is contained in:
2024-06-01 14:00:16 +02:00
parent 16d97ad08f
commit d662a6c426
5 changed files with 252 additions and 150 deletions

View File

@@ -6,7 +6,7 @@ class Client {
final String timestampCreated;
final String agentModel;
final String agentVersion;
final String? descriptionName;
final String? name;
const Client({
required this.clientID,
@@ -16,7 +16,7 @@ class Client {
required this.timestampCreated,
required this.agentModel,
required this.agentVersion,
required this.descriptionName,
required this.name,
});
factory Client.fromJson(Map<String, dynamic> json) {
@@ -28,7 +28,7 @@ class Client {
timestampCreated: json['timestamp_created'] as String,
agentModel: json['agent_model'] as String,
agentVersion: json['agent_version'] as String,
descriptionName: json.containsKey('description_name') ? (json['description_name'] as String?) : null, //TODO change once API is updated / branch is merged
name: json['name'] as String?,
);
}