# toName method

String toName()

## Implementation

    String toName() {
      switch (this) {
        case ChatState.active:
          return 'active';
        case ChatState.composing:
          return 'composing';
        case ChatState.paused:
          return 'paused';
        case ChatState.inactive:
          return 'inactive';
        case ChatState.gone:
          return 'gone';
      }
    }