UserModel class

Constructors

UserModel({required String id, required String role, required String name, required String phoneNumber, required String birthdate, required String gender, required bool foreign, required DateTime updatedAt, required DateTime createdAt})
const
UserModel.fromJson(dynamic json)
factory

Properties

birthdate String
final
createdAt DateTime
final
foreign bool
final
gender String
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
name String
final
phoneNumber String
final
role String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updatedAt DateTime
final

Methods

copy({String? id, String? role, String? name, String? phoneNumber, String? birthdate, String? gender, bool? foreign, DateTime? updatedAt, DateTime? createdAt}) UserModel
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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