public CircleOverlayEntry ToDomainModel() { var domain = new CircleOverlayEntry(); BaseOverlayEntryJsModel.MapBasePropertiesToDomainModel(domain, this); domain.Center = this.Center; domain.Size = this.Size; return(domain); }
internal static CircleOverlayEntryJsModel CreateFromDomainModel(CircleOverlayEntry circleDomain) { var model = new CircleOverlayEntryJsModel { Center = circleDomain.Center, Size = circleDomain.Size }; BaseOverlayEntryJsModel.MapBasePropertiesFromDomainModel(circleDomain, model); return(model); }