convertArgument = (argument) => {
    const internalArgument = {};
    internalArgument['description'] = argument.description || '';
    internalArgument['type'] = argument.type || '';
    if (argument.argumentName != null) {
      internalArgument['name'] = argument.argumentName;
    }
    if (argument.defaultValue !== undefined) {
      internalArgument['default'] = argument.defaultValue;
    }
    if (argument.optional != null) {
      internalArgument['optional'] = argument.optional;
    }
    return internalArgument;
  }
Converts a ListAlgorithmsResponse to the internal format.

The internal code expects an object mapping each algorithm's name to an
object containing:
- description: string
- returns: string
- args: list of objects, each containing
  - name: argument name
  - type: argument type
  - description: argument description (optional)
  - optional: bool (optional)
  - default: default value (optional)
- hidden: bool (optional)
- preview: bool (optional)
- deprecated: string containing deprecation reason (optional)
- sourceCodeUri: string (optional)

@param {!ee.api.ListAlgorithmsResponse} result
@return {!Object}