GetReviewsResponse.fromJson constructor

GetReviewsResponse.fromJson(
  1. Object? json
)

Implementation

factory GetReviewsResponse.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return GetReviewsResponse(
    data: (map['data'] as List<Object?>)
        .map((el) => Review.fromJson(el))
        .toList(),
    hasMore: (map['has_more'] as bool),
    url: (map['url'] as String),
  );
}