ServicePointState constructor

ServicePointState({
  1. ServicePointId? id,
  2. bool? firstMileActive,
  3. bool? lastMileActive,
  4. Credit? firstMilePriceInclTax,
  5. Credit? lastMilePriceInclTax,
})

Implementation

factory ServicePointState({
  $1.ServicePointId? id,
  $core.bool? firstMileActive,
  $core.bool? lastMileActive,
  $0.Credit? firstMilePriceInclTax,
  $0.Credit? lastMilePriceInclTax,
}) {
  final result = create();
  if (id != null) result.id = id;
  if (firstMileActive != null) result.firstMileActive = firstMileActive;
  if (lastMileActive != null) result.lastMileActive = lastMileActive;
  if (firstMilePriceInclTax != null)
    result.firstMilePriceInclTax = firstMilePriceInclTax;
  if (lastMilePriceInclTax != null)
    result.lastMilePriceInclTax = lastMilePriceInclTax;
  return result;
}