OwnUserResponse class

Annotations
  • @freezed
  • @immutable
  • @JsonSerializable()

Constructors

OwnUserResponse.new({int? avgResponseTime, required bool banned, List<String>? blockedUserIds, required List<ChannelMute> channelMutes, required DateTime createdAt, required Map<String, Object?> custom, DateTime? deactivatedAt, DateTime? deletedAt, required List<DeviceResponse> devices, required String id, String? image, required bool invisible, required String language, DateTime? lastActive, List<String>? latestHiddenChannels, required List<UserMuteResponse> mutes, String? name, required bool online, PrivacySettingsResponse? privacySettings, PushPreferences? pushPreferences, DateTime? revokeTokensIssuedBefore, required String role, required List<String> teams, Map<String, String>? teamsRole, required int totalUnreadCount, Map<String, int>? totalUnreadCountByTeam, required int unreadChannels, required int unreadCount, required int unreadThreads, required DateTime updatedAt})
const

Properties

avgResponseTime int?
final
banned bool
final
blockedUserIds List<String>?
final
channelMutes List<ChannelMute>
final
copyWith → $OwnUserResponseCopyWith<OwnUserResponse>
Create a copy of OwnUserResponse with the given fields replaced by the non-null parameter values.
no setterinherited
createdAt DateTime
final
custom Map<String, Object?>
final
deactivatedAt DateTime?
final
deletedAt DateTime?
final
devices List<DeviceResponse>
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
image String?
final
invisible bool
final
language String
final
lastActive DateTime?
final
latestHiddenChannels List<String>?
final
mutes List<UserMuteResponse>
final
name String?
final
online bool
final
privacySettings PrivacySettingsResponse?
final
pushPreferences PushPreferences?
final
revokeTokensIssuedBefore DateTime?
final
role String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
teams List<String>
final
teamsRole Map<String, String>?
final
totalUnreadCount int
final
totalUnreadCountByTeam Map<String, int>?
final
unreadChannels int
final
unreadCount int
final
unreadThreads int
final
updatedAt DateTime
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
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) OwnUserResponse