class ContentResourceConverter extends ResourceConverterImpl<ContentResource, ClientFile> {

    @Override
    protected ClientFile resourceSpecificFieldsToClient(ClientFile client, ContentResource serverObject, ToClientConversionOptions options) {
        if (ContentResource.TYPE_UNSPECIFIED.equals(serverObject.getFileType())){
            client.setType(ClientFile.FileType.unspecified);
        } else {
            client.setType(ClientFile.FileType.valueOf(serverObject.getFileType()));
        }
        return client;
    }

}