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