-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore : creates HostelChangeRequest model
- Loading branch information
Showing
4 changed files
with
53 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
lib/domain/models/hostel_change_request/hostel_change_request.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import 'package:freezed_annotation/freezed_annotation.dart'; | ||
|
||
part 'hostel_change_request.freezed.dart'; | ||
part 'hostel_change_request.g.dart'; | ||
|
||
@freezed | ||
class HostelChangeRequest with _$HostelChangeRequest { | ||
@JsonSerializable(fieldRename: FieldRename.snake) | ||
const factory HostelChangeRequest( | ||
{required int user, | ||
required int id, | ||
required String hostelCode, | ||
required String newRoomNo, | ||
bool? isApproved, | ||
required String timestamp, | ||
required int newHostel}) = _HostelChangeRequest; | ||
|
||
factory HostelChangeRequest.fromJson(Map<String, dynamic> json) => | ||
_$HostelChangeRequestFromJson(json); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters