import { deserialize , serialize } from "class-transformer" ; import VisualizationLinkParams from "../classes/VisualizationLinkParams" ; export default class VisualizationLinkSerializationService { public serialize ( visualizationLinkParams ) { const data = serialize ( visualizationLinkParams ) ; return btoa ( data ) ; } public deserialize ( input ) { const plain = atob ( input ) ; return deserialize ( VisualizationLinkParams , plain ) ; } }