UserEntity class

Data class model

Annotations

Constructors

UserEntity({required int? id, required String name, required String email, required UserRole role})
UserEntity.fromJson(Map<String, dynamic> json)
Get model from map
factory

Properties

email String
final
hashCode int
The hash code for this object.
no setterinherited
id int?
final
name String
final
role UserRole
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copy([Map<String, dynamic>? json]) UserEntity
copy
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Get map from model
toString() String
Get string json
override

Operators

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