UserSearchResult class abstract

Implemented types

Constructors

UserSearchResult({required Uri? avatarUrl, @JsonKey(readValue: _readBannerLink) required Uri? bannerLink, @JsonKey(readValue: _readBannerUrl) required Uri? bannerUrl, required String? city, @JsonKey(defaultValue: 0) required double commentsCount, required String? countryCode, required DateTime createdAt, required String? description, required double followersCount, required double followingsCount, required String? firstName, required String? fullName, @JsonKey(defaultValue: 0) required double groupsCount, required int id, required DateTime? lastModified, required String? lastName, @JsonKey(defaultValue: 0) required double likesCount, @JsonKey(defaultValue: 0) required double playlistLikesCount, required Uri permalinkUrl, @JsonKey(defaultValue: 0) required double playlistCount, @JsonKey(defaultValue: 0) required double repostsCount, @JsonKey(defaultValue: 0) required double trackCount, required String username, @JsonKey(name: 'verified') required bool isVerified})
const
factory
UserSearchResult.fromJson(Map<String, dynamic> json)
factory

Properties

avatarUrl Uri?
The URL of this user's profile picture.
no setteroverride
no setter
bannerUrl Uri?
no setter
city String?
The city this user is associated with.
no setteroverride
commentsCount double
no setter
copyWith → _$$UserSearchResultImplCopyWith<_$UserSearchResultImpl>
no setter
countryCode String?
The country this user is associated with.
no setteroverride
createdAt DateTime
no setter
description String?
no setter
firstName String?
This user's forename.
no setteroverride
followersCount double
The number of accounts following this user.
no setteroverride
followingsCount double
no setter
fullName String?
This user's full name.
no setteroverride
groupsCount double
no setter
hashCode int
The hash code for this object.
no setterinherited
id int
no setter
isVerified bool
Whether or not this user is verified.
no setteroverride
lastModified DateTime?
no setter
lastName String?
This user's surname.
no setteroverride
likesCount double
no setter
permalinkUrl Uri
no setter
playlistCount double
no setter
playlistLikesCount double
no setter
repostsCount double
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trackCount double
no setter
username String
The username of this user's account.
no setteroverride

Methods

map<TResult extends Object?>({required TResult track(TrackSearchResult value), required TResult playlist(PlaylistSearchResult value), required TResult user(UserSearchResult value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? track(TrackSearchResult value)?, TResult? playlist(PlaylistSearchResult value)?, TResult? user(UserSearchResult value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult track(TrackSearchResult value)?, TResult playlist(PlaylistSearchResult value)?, TResult user(UserSearchResult value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult track(Uri? artworkUrl, String? caption, bool commentable, double commentCount, DateTime createdAt, String? description, double downloadCount, double duration, double fullDuration, String? genre, int id, String? labelName, DateTime? lastModified, String? license, double likesCount, Uri permalinkUrl, double playbackCount, String? purchaseTitle, String? purchaseUrl, double repostsCount, String? tagList, String title, String waveformUrl, String monetizationModel, String policy, MiniUser user)?, TResult playlist(Uri? artworkUrl, DateTime createdAt, String? description, double duration, String? genre, int id, String? labelName, DateTime? lastModified, double likesCount, Uri permalinkUrl, double repostsCount, String? tagList, String title, bool isAlbum, MiniUser user, double trackCount)?, TResult user(Uri? avatarUrl, Uri? bannerLink, Uri? bannerUrl, String? city, double commentsCount, String? countryCode, DateTime createdAt, String? description, double followersCount, double followingsCount, String? firstName, String? fullName, double groupsCount, int id, DateTime? lastModified, String? lastName, double likesCount, double playlistLikesCount, Uri permalinkUrl, double playlistCount, double repostsCount, double trackCount, String username, bool isVerified)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult track(Uri? artworkUrl, String? caption, bool commentable, double commentCount, DateTime createdAt, String? description, double downloadCount, double duration, double fullDuration, String? genre, int id, String? labelName, DateTime? lastModified, String? license, double likesCount, Uri permalinkUrl, double playbackCount, String? purchaseTitle, String? purchaseUrl, double repostsCount, String? tagList, String title, String waveformUrl, String monetizationModel, String policy, MiniUser user), required TResult playlist(Uri? artworkUrl, DateTime createdAt, String? description, double duration, String? genre, int id, String? labelName, DateTime? lastModified, double likesCount, Uri permalinkUrl, double repostsCount, String? tagList, String title, bool isAlbum, MiniUser user, double trackCount), required TResult user(Uri? avatarUrl, Uri? bannerLink, Uri? bannerUrl, String? city, double commentsCount, String? countryCode, DateTime createdAt, String? description, double followersCount, double followingsCount, String? firstName, String? fullName, double groupsCount, int id, DateTime? lastModified, String? lastName, double likesCount, double playlistLikesCount, Uri permalinkUrl, double playlistCount, double repostsCount, double trackCount, String username, bool isVerified)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? track(Uri? artworkUrl, String? caption, bool commentable, double commentCount, DateTime createdAt, String? description, double downloadCount, double duration, double fullDuration, String? genre, int id, String? labelName, DateTime? lastModified, String? license, double likesCount, Uri permalinkUrl, double playbackCount, String? purchaseTitle, String? purchaseUrl, double repostsCount, String? tagList, String title, String waveformUrl, String monetizationModel, String policy, MiniUser user)?, TResult? playlist(Uri? artworkUrl, DateTime createdAt, String? description, double duration, String? genre, int id, String? labelName, DateTime? lastModified, double likesCount, Uri permalinkUrl, double repostsCount, String? tagList, String title, bool isAlbum, MiniUser user, double trackCount)?, TResult? user(Uri? avatarUrl, Uri? bannerLink, Uri? bannerUrl, String? city, double commentsCount, String? countryCode, DateTime createdAt, String? description, double followersCount, double followingsCount, String? firstName, String? fullName, double groupsCount, int id, DateTime? lastModified, String? lastName, double likesCount, double playlistLikesCount, Uri permalinkUrl, double playlistCount, double repostsCount, double trackCount, String username, bool isVerified)?}) → TResult?
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited