User class

Available extensions
Annotations
  • @JsonSerializable.new(explicitToJson: true)

Constructors

User({String? firstName, String? lastName, String? email})
User.fromJson(Map<String, dynamic> json)
factory

Properties

email → String?
final
firstName → String?
final
hashCode → int
The hash code for this object.
no setterinherited
lastName → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? firstName, String? lastName, String? email}) → User

Available on User, provided by the $UserExtension extension

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 ==(dynamic other) → bool
The equality operator.
override

Constants

fromJsonFactory → const User Function(Map<String, dynamic> json)
toJsonFactory → const Map<String, dynamic> Function(User instance)