PageOfComments.fromJson constructor
Implementation
factory PageOfComments.fromJson(Map<String, Object?> json) {
return PageOfComments(
comments: (json[r'comments'] as List<Object?>?)
?.map((i) =>
Comment.fromJson(i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
maxResults: (json[r'maxResults'] as num?)?.toInt(),
startAt: (json[r'startAt'] as num?)?.toInt(),
total: (json[r'total'] as num?)?.toInt(),
);
}