District constructor

District({
  1. String? name,
  2. String? slug,
  3. String? pathWithType,
  4. String? nameWithType,
  5. String? code,
  6. String? type,
  7. List<Wards>? wards,
})

Implementation

District(
    {this.name,
    this.slug,
    this.pathWithType,
    this.nameWithType,
    this.code,
    this.type,
    List<Wards>? wards}) : this.wards = wards ?? <Wards>[];