(self, s, element, element_type=None)
return candidate
Convert a discovery name to a suitable Dart class name.

    Overrides the default.

    Args:
      s: (str) A rosy name of data element.
      element: (object) The object we need a class name for.
      element_type: (str) The kind of element (resource|method) to name.
    Returns:
      A name suitable for use as a class in the generator's target language.
Convert a discovery name to a suitable Dart class name.
Convert a discovery name to a suitable Dart class name .
def ToClassName(self, s, element, element_type=None):
    """Convert a discovery name to a suitable Dart class name.

    Overrides the default.

    Args:
      s: (str) A rosy name of data element.
      element: (object) The object we need a class name for.
      element_type: (str) The kind of element (resource|method) to name.
    Returns:
      A name suitable for use as a class in the generator's target language.
    """

    candidate = utilities.CamelCase(s)
    if isinstance(element, api.Api):
      candidate += 'Api'
    while candidate in DartLanguageModel.RESERVED_CLASS_NAMES:
      candidate += '_'
    return candidate
def ToClassName ( self , s , element , element_type = None ) : candidate = utilities . CamelCase ( s ) if isinstance ( element , api . Api ) : candidate += 'Api' while candidate in DartLanguageModel . RESERVED_CLASS_NAMES : candidate += '_' return candidate