PostModel.fromJson constructor
PostModel.fromJson(
- String source
This is will help us to create object from json input
Implementation
factory PostModel.fromJson(String source) =>
PostModel.fromMap(json.decode(source));