District class

Represents a district within a province.

Constructors

District({required int code, required String name, required List<Ward> wards})
Creates a new District instance.
District.fromJson(Map<String, dynamic> json)
Creates a new District instance from a JSON object.
factory

Properties

code → int
The unique code of the district.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
The name of the district.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
wards → List<Ward>
The list of wards within the district.
final

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