pub fn from_new_area_dto_to_shading(
dtos: Vec<NewAreaDto>,
) -> Result<Vec<Shading>, ServiceError>
Expand description
Maps NewAreaDto
s to Shading
s.
Precondition is that all dtos
have area_type == AreaType::Shade(_)
.
ยงErrors
- Returns an error if any
dtos
have a differentarea_type
.