PostItemModel.fromJson constructor

PostItemModel.fromJson(
  1. String source
)

This is will help us to create object from json input

Implementation

factory PostItemModel.fromJson(String source) =>
    PostItemModel.fromMap(json.decode(source));