User class

Available Extensions
Annotations
  • @immutable

Constructors

User({required int id, required String url, required String link, required String slug, required List<String> roles, required Map<String, bool> capabilities, required Map<String, dynamic> self, String? name, String? description, AvatarUrls? avatarUrls, dynamic meta, Links? links, String? email, String? firstName, String? lastName, ExtraCapabilities? extraCapabilities, DateTime? registeredDate, String? username, String? nickname})
const
User.fromJson(Map<String, dynamic> json)
factory

Properties

avatarUrls → AvatarUrls?
final
capabilities Map<String, bool>
final
description String?
final
email String?
final
extraCapabilities → ExtraCapabilities?
final
firstName String?
final
hashCode int
The hash code for this object.
no setteroverride
id int
final
lastName String?
final
final
final
meta → dynamic
final
name String?
final
nickname String?
final
registeredDate DateTime?
final
roles List<String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
self Map<String, dynamic>
Represents the entire JSON body as a Map.
final
slug String
final
url String
final
username String?
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.
override

Operators

operator ==(covariant User other) bool
The equality operator.
override