Collection class
A collection of Photos.
See: Unsplash docs
Constructors
-
Collection.new({Map<
String, dynamic> ? source, required String id, required String title, required String? description, required DateTime publishedAt, required DateTime updatedAt, required Photo? coverPhoto, required User user, required bool featured, required int totalPhotos, required bool private, required CollectionLinks links}) -
const
-
Collection.fromJson(Map<
String, dynamic> json) -
factory
Properties
- coverPhoto → Photo?
-
final
- description → String?
-
final
- featured → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- links → CollectionLinks
-
final
- private → bool
-
final
- publishedAt → DateTime
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
final
-
source
→ Map<
String, dynamic> ? -
The raw JSON response from the API which was used to construct this
object.
finalinherited
- title → String
-
final
- totalPhotos → int
-
final
- updatedAt → DateTime
-
final
- user → User
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Returns the json representation of this model in the unsplash api.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited