methods created for:
* `POST /post`
* `GET /post`
* `GET /post/list`
* `POST /post/like`
* `PUT /post`
* `POST /post/delete`
* `POST /post/remove`
* `POST /post/save`
I'm not implementing admin stuff cuz we don't need it for now,
and we keep track of what is yet to be added in #6
also we might need to move a bunch of stuff to separate files cuz it's getting cluttered in here
Cleaned code in post.dart for it to be more readable.
Moved ParseDateFromJson static method from PostView to UtilityClass in utility.dart, because it's also used by CommentView class.
Added auto generated JSON (de)serialization of PostView class by json_serializable package.
Added required packages and dependencies in pubsec.yalm:
- json_annotation: ^3.0.1,
- json_serializable: ^3.3.0,
- build_runner: ^1.10.0.
TODO:
Implement ParseDateFromJson static method in PostView class.