toId static method

String toId(
  1. GroqMessageRole role
)

Implementation

static String toId(GroqMessageRole role) {
  switch (role) {
    case GroqMessageRole.system:
      return 'system';
    case GroqMessageRole.user:
      return 'user';
    case GroqMessageRole.assistant:
      return 'assistant';
  }
}