Province class

Represents a province with details such as its name and unique ID.

Constructors

Province({required int id, required String nameEn, required String nameSi, required String nameTa})
Creates a new Province instance with the required properties.
Province.fromJson(Map<String, dynamic> json)
Creates a new Province instance from a JSON map.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
id int
Unique identifier for the province.
final
nameEn String
The English name of the province.
final
nameSi String
The Sinhala name of the province.
final
nameTa String
The Tamil name of the province.
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
toString() String
A string representation of this object.
inherited

Operators

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