Collection class

A collection of Photos.

See: Unsplash docs

Inheritance

Constructors

Collection({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 String? shareKey, required CollectionLinks links})
const
Collection.fromJson(Map<String, dynamic> json)
factory

Properties

coverPhoto Photo?
final
description String?
final
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
final
private bool
final
publishedAt DateTime
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shareKey String?
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