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.