EmployeeNameFilterModel class

The EmployeeNameFilterModel class represents an employee filtered by name.

It contains properties for the employee's ID, name, designation, placement, and image (optional). This class implements the Equatable class to enable value comparison based on its properties.

Constructors

EmployeeNameFilterModel({required int id, required String name, required String designation, required String placement, String? image})
Creates a new instance of the EmployeeNameFilterModel class.
const
EmployeeNameFilterModel.fromJson(Map<String, dynamic> json)
Creates a new instance of the EmployeeNameFilterModel class from a JSON map.
factory

Properties

designation String
The designation of the employee.
final
hashCode int
The hash code for this object.
no setterinherited
id int
The ID of the employee.
final
image String?
The image associated with the employee (optional).
final
name String
The name of the employee.
final
placement String
The placement of the employee.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

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