User class

Metadata about a SoundCloud user's profile.

Implemented types
Annotations
  • @freezed

Constructors

User.new({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, @JsonKey(defaultValue: 0) required double followersCount, @JsonKey(defaultValue: 0) 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
User.fromJson(Map<String, Object?> json)
factory

Properties

avatarUrl Uri?
no setterinherited
no setterinherited
bannerUrl Uri?
no setterinherited
city String?
no setterinherited
commentsCount double
no setterinherited
copyWith → $UserCopyWith<User>
Create a copy of User with the given fields replaced by the non-null parameter values.
no setterinherited
countryCode String?
no setterinherited
createdAt DateTime
no setterinherited
description String?
no setterinherited
firstName String?
no setterinherited
followersCount double
no setterinherited
followingsCount double
no setterinherited
fullName String?
no setterinherited
groupsCount double
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id int
no setterinherited
isVerified bool
no setterinherited
lastModified DateTime?
no setterinherited
lastName String?
no setterinherited
likesCount double
no setterinherited
permalinkUrl Uri
no setterinherited
playlistCount double
no setterinherited
playlistLikesCount double
no setterinherited
repostsCount double
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trackCount double
no setterinherited
username String
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this User to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

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