import { StateType, ServerStateType } from '@/models' import { MapFunction } from '@/services/Mapper' export const mapServerStateTypeToStateType: MapFunction = function(source) { return source.toLowerCase() as StateType } export const mapStateTypeToServerStateType: MapFunction = function(source) { return source.toUpperCase() as ServerStateType }