PaginatedObjectsResponse.fromJson constructor
PaginatedObjectsResponse.fromJson(
- dynamic data
Implementation
factory PaginatedObjectsResponse.fromJson(dynamic data) {
List<SuiObjectResponse> list = [];
for (var response in data['data']) {
list.add(SuiObjectResponse.fromJson(response));
}
return PaginatedObjectsResponse(
list,
data['nextCursor']??"",
data['hasNextPage'],
);
}