1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Contains the implementation of [`NewLayerDto`].

use crate::model::entity::NewLayer;

use super::NewLayerDto;

impl From<NewLayerDto> for NewLayer {
    fn from(new_layer: NewLayerDto) -> Self {
        Self {
            map_id: new_layer.map_id,
            type_: new_layer.type_,
            name: new_layer.name,
            is_alternative: new_layer.is_alternative,
        }
    }
}