move getTypedDataStr definition to data model