Function registryTypeFromJSON