copyWith method

ConnectorAggregation copyWith({
  1. EvConnectorType? type,
  2. double? maxChargeRateKw,
  3. int? count,
  4. DateTime? availabilityLastUpdateTime,
  5. int? availableCount,
  6. int? outOfServiceCount,
})

Implementation

ConnectorAggregation copyWith({
  EvConnectorType? type,
  double? maxChargeRateKw,
  int? count,
  DateTime? availabilityLastUpdateTime,
  int? availableCount,
  int? outOfServiceCount,
}) {
  return ConnectorAggregation(
    type: type ?? this.type,
    maxChargeRateKw: maxChargeRateKw ?? this.maxChargeRateKw,
    count: count ?? this.count,
    availabilityLastUpdateTime:
        availabilityLastUpdateTime ?? this.availabilityLastUpdateTime,
    availableCount: availableCount ?? this.availableCount,
    outOfServiceCount: outOfServiceCount ?? this.outOfServiceCount,
  );
}