District class

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

Constructors

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

Properties

hashCode int
The hash code for this object.
no setterinherited
id int
Unique identifier for the district.
final
nameEn String
The English name of the district.
final
nameSi String
The Sinhala name of the district.
final
nameTa String
The Tamil name of the district.
final
provinceId int
The ID of the province that the district belongs to.
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