User class

A user registered with unsplash.

See: Unsplash docs

Inheritance

Constructors

User({Map<String, dynamic>? source, required String id, required DateTime updatedAt, required String username, required String name, required String firstName, required String? lastName, required String? email, required int? uploadsRemaining, required Uri? portfolioUrl, required String? bio, required String? location, required int totalLikes, required int totalPhotos, required int totalCollections, required bool? followedByUser, required int? followerCount, required int? followingCount, required int? downloads, required String? instagramUsername, required String? twitterUsername, required ProfileImage profileImage, required UserBadge? badge, required UserLinks links})
const
User.fromJson(Map<String, dynamic> json)
factory

Properties

badge UserBadge?
final
bio String?
final
downloads int?
final
email String?
final
firstName String
final
followedByUser bool?
final
followerCount int?
final
followingCount int?
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
instagramUsername String?
final
lastName String?
final
final
location String?
final
name String
final
portfolioUrl Uri?
final
profileImage ProfileImage
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source Map<String, dynamic>?
The raw JSON response from the API which was used to construct this object.
finalinherited
totalCollections int
final
totalLikes int
final
totalPhotos int
final
twitterUsername String?
final
updatedAt DateTime
final
uploadsRemaining int?
final
username String
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