Collection class
The Collection resource is a JSON formatted version of a Pexels collection. The Collection list endpoint responds with the collection data formatted in this shape.
Constructors
- Collection({required String? id, required String? title, required String? description, required bool? private, required int? mediaCount, required int? photosCount, required int? videosCount})
-
Collection.fromJson(Map<
String, dynamic> json) -
Collection.fromJson Mapping data to Collection
factory
Properties
- description ↔ String?
-
The description of the collection.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
The id of the collection.
getter/setter pair
- mediaCount ↔ int?
-
The mediaCount total number of media included in this collection.
getter/setter pair
- photosCount ↔ int?
-
The photosCount total number of photos included in this collection.
getter/setter pair
- private ↔ bool?
-
Whether or not the collection is marked as private.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title ↔ String?
-
The title name of the collection.
getter/setter pair
- videosCount ↔ int?
-
The videosCount The total number of videos included in this collection.
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