Insparkspokalen-ui/lib/models/missionModel.dart
pompo96 982a910ee3 Bugfixes:
Cant join team if in team
Profile page resets properly
Post button spam no longer leads to crash due to duplicate calls

Housekeeping:
Made some name changes
moved homescreenpages from layout -> homeFeed
Deleted 2 unused classes, authService.dart and old loginPage.dart then renamed startPage.dart -> loginPage.dart

Set up openApi on backend and added URL in Service classes
2025-05-25 11:40:03 +02:00

28 lines
605 B
Dart

import 'package:json_annotation/json_annotation.dart';
part 'autogenerated/missionModel.g.dart';
@JsonSerializable()
class MissionModel {
final int? id;
final String name;
final String? description;
final int points;
final String deadline;
final DateTime? timePosted;
MissionModel({
this.id,
required this.name,
this.description,
required this.points,
required this.deadline,
this.timePosted,
});
factory MissionModel.fromJson(Map<String, dynamic> json) =>
_$MissionModelFromJson(json);
Map<String, dynamic> toJson() => _$MissionModelToJson(this);
}