fromString static method

ConversationMode fromString(
  1. String value
)

Implementation

static ConversationMode fromString(String value) {
  switch (value) {
    case 'standard':
    case 'legacy':
    case 'legacy_mode':
      return ConversationMode.standard;
    case 'ephemeral':
    case 'ghost':
    case 'ghost_mode':
      return ConversationMode.ephemeral;
    default:
      return ConversationMode.standard;
  }
}