Topic class

A topic on Unsplash.

See: Unsplash docs

Inheritance

Constructors

Topic({Map<String, dynamic>? source, required String id, required String slug, required String title, required String description, required DateTime publishedAt, required DateTime updatedAt, required DateTime startsAt, required DateTime? endsAt, required bool featured, required int totalPhotos, required TopicLinks links, required String status, required List<User> owners, required List<User>? topContributors, required Photo coverPhoto})

Properties

coverPhoto Photo
final
description String
final
endsAt DateTime?
final
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
final
owners List<User>
final
publishedAt DateTime
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slug String
final
source Map<String, dynamic>?
The raw JSON response from the API which was used to construct this object.
finalinherited
startsAt DateTime
final
status String
final
title String
final
topContributors List<User>?
final
totalPhotos int
final
updatedAt DateTime
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

Static Methods

fromJson(Map<String, dynamic> json) Topic