Files
spaceTraders_API/lib/models/agent_model.dart
2023-05-31 10:48:00 +02:00

31 lines
786 B
Dart

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"],
);
}