ServicePointHeader constructor

ServicePointHeader({
  1. ServicePointId? id,
  2. String? title,
  3. StringValue? description,
  4. Int32Value? distanceInMeters,
  5. Price? firstMilePrice,
  6. GeoLocation? location,
  7. StoredImage? icon,
  8. bool? firstMileActive,
  9. StringValue? locationDescription,
  10. bool? lastMileActive,
  11. Price? lastMilePrice,
})

Implementation

factory ServicePointHeader({
  $1.ServicePointId? id,
  $core.String? title,
  $3.StringValue? description,
  $3.Int32Value? distanceInMeters,
  $7.Price? firstMilePrice,
  $0.GeoLocation? location,
  $4.StoredImage? icon,
  $core.bool? firstMileActive,
  $3.StringValue? locationDescription,
  $core.bool? lastMileActive,
  $7.Price? lastMilePrice,
}) {
  final result = create();
  if (id != null) result.id = id;
  if (title != null) result.title = title;
  if (description != null) result.description = description;
  if (distanceInMeters != null) result.distanceInMeters = distanceInMeters;
  if (firstMilePrice != null) result.firstMilePrice = firstMilePrice;
  if (location != null) result.location = location;
  if (icon != null) result.icon = icon;
  if (firstMileActive != null) result.firstMileActive = firstMileActive;
  if (locationDescription != null)
    result.locationDescription = locationDescription;
  if (lastMileActive != null) result.lastMileActive = lastMileActive;
  if (lastMilePrice != null) result.lastMilePrice = lastMilePrice;
  return result;
}