diff --git a/lib/src/domain/model/model_authentication_response.dart b/lib/src/domain/model/model_authentication_response.dart index c39a940..9d73c6f 100644 --- a/lib/src/domain/model/model_authentication_response.dart +++ b/lib/src/domain/model/model_authentication_response.dart @@ -65,13 +65,14 @@ class TokenResponse { } class Athlete { - Athlete(); + int id; + Athlete(required this.id); factory Athlete.fromRawJson(String str) => Athlete.fromJson(json.decode(str)); String toRawJson() => json.encode(toJson()); - factory Athlete.fromJson(Map json) => Athlete(); + factory Athlete.fromJson(Map json) => Athlete(id:json["id"]); Map toJson() => {}; }