copyWith method
Implementation
ParkingCapacity copyWith({
Optional<String?>? total,
List<SpecialSpace>? specialSpaces
}) {
return ParkingCapacity(
total: total != null ? total.value : this.total,
specialSpaces: specialSpaces ?? this.specialSpaces
);
}