Curated class
This endpoint enables you to receive real-time photos curated by the Pexels team. We add at least one new photo per hour to our curated list so that you always get a changing selection of trending photos.
Constructors
-
Curated({required int? page, required int? perPage, required int? totalResult, required List<
Photo> ? photos, required String? nextPage, required String? prevPage}) - Named ConstructorsCurated with required params
-
Curated.fromJson(Map<
String, dynamic> json) -
Curated.fromJson Mapping object to Curated
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- nextPage ↔ String?
-
URL for the next page of results, if applicable.
getter/setter pair
- page ↔ int?
-
The current page number.
getter/setter pair
- perPage ↔ int?
-
The number of results you are requesting per page. Default: 15 Max: 80
getter/setter pair
-
photos
↔ List<
Photo> ? -
An array of Photo objects.
getter/setter pair
- prevPage ↔ String?
-
URL for the previous page of results, if applicable
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalResult ↔ int?
-
The total number of results for the request.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited