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
28 lines
605 B
Dart
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);
|
|
}
|