Replies.fromMap constructor
This is will help us to create object from Map
Implementation
factory Replies.fromMap(Map<String, dynamic> map) {
return Replies(
totalItems: int.parse(map['totalItems']), // map['totalItems']?.toInt(),
selfLink: map['selfLink'],
postComments: map['postComments'] != null
? List<PostComments>.from(
map['postComments']?.map((x) => PostComments.fromMap(x)))
: null,
);
}