PostComments.fromJson constructor

PostComments.fromJson(
  1. String source
)

This is will help us to create object from json input

Implementation

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