UserInfo class abstract

Available extensions
Annotations
  • @freezed

Constructors

UserInfo({String? educationSystem, required String? department, String? className, required String id, required String? name, String? pictureUrl, String? email, @JsonKey.new(includeToJson: false, includeFromJson: false) Uint8List? pictureBytes})
const
factory
UserInfo.empty()
factory
UserInfo.fromJson(Map<String, dynamic> json)
factory
UserInfo.fromRawJson(String str)
factory

Properties

className → String?
no setterinherited
copyWith → $UserInfoCopyWith<UserInfo>
Create a copy of UserInfo with the given fields replaced by the non-null parameter values.
no setterinherited
department → String?
no setterinherited
educationSystem → String?
no setterinherited
email → String?
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
id → String
no setterinherited
name → String?
no setterinherited
pictureBytes → Uint8List?
no setterinherited
pictureUrl → String?
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_UserInfo value)) → TResult

Available on UserInfo, provided by the UserInfoPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_UserInfo value)?) → TResult?

Available on UserInfo, provided by the UserInfoPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_UserInfo value)?, {required TResult orElse()}) → TResult

Available on UserInfo, provided by the UserInfoPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String? educationSystem, String? department, String? className, String id, String? name, String? pictureUrl, String? email, Uint8List? pictureBytes)?, {required TResult orElse()}) → TResult

Available on UserInfo, provided by the UserInfoPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save(String tag) → void
toJson() → Map<String, dynamic>
Serializes this UserInfo to a JSON map.
inherited
toRawJson() → String
toString() → String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String? educationSystem, String? department, String? className, String id, String? name, String? pictureUrl, String? email, Uint8List? pictureBytes)) → TResult

Available on UserInfo, provided by the UserInfoPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String? educationSystem, String? department, String? className, String id, String? name, String? pictureUrl, String? email, Uint8List? pictureBytes)?) → TResult?

Available on UserInfo, provided by the UserInfoPatterns extension

A variant of when that fallback to returning null

Operators

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

Static Methods

load(String tag) → UserInfo?