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})
-
constfactory
- 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
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_UserInfo value)?) → TResult? -
Available on UserInfo, provided by the UserInfoPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_UserInfo value)?, {required TResult orElse()}) → TResult -
Available on UserInfo, provided by the UserInfoPatterns extension
A variant ofmapthat fallback to returningorElse. -
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 ofwhenthat fallback to anorElsecallback. -
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
Aswitch-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 ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited