ChatCompletionMessage.fromJson constructor

ChatCompletionMessage.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ChatCompletionMessage.fromJson(Map<String, dynamic> json) => ChatCompletionMessage(
      role: json['role'],
      content: json['content'],
    );