UserDetails class

User details extracted from login operation.

Inheritance

Constructors

UserDetails({String? name, OpenFoodFactsLanguage? preferredLanguage, OpenFoodFactsCountry? country, bool? isModerator, bool? isAdmin})
const
UserDetails.fromJson(Map<String, dynamic> json)
factory

Properties

country → OpenFoodFactsCountry?
final
hashCode → int
The hash code for this object.
no setterinherited
isAdmin → bool?
final
isModerator → bool?
final
name → String?
final
preferredLanguage → OpenFoodFactsLanguage?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toData() → Map<String, String>
inherited
toJson() → Map<String, dynamic>
override
toString() → String
A string representation of this object.
override
toValueString() → String
Returns all values as a String separated by a hyphen value1 - value2 - value3
inherited

Operators

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