Ajout fichiers

This commit is contained in:
Gabriel
2023-05-31 10:45:12 +02:00
commit 6d17b302d6
135 changed files with 5319 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
import 'dart:convert';
AgentModel agentModelFromJson(String str) =>
AgentModel.fromJson(json.decode(str));
//String AgentModelToJson(ActivityModel data) => json.encode(data.toJson());
class AgentModel {
AgentModel({
this.accountId,
this.symbol,
this.headquarters,
this.credits,
this.startingFaction,
});
String? accountId;
String? symbol;
String? headquarters;
int? credits;
String? startingFaction;
factory AgentModel.fromJson(Map<String, dynamic> json) => AgentModel(
accountId: json["accountId"],
symbol: json["symbol"],
headquarters: json["headquarters"],
credits: json["credits"],
startingFaction: json["startingFaction"],
);
}