toMap method

Map<String, String> toMap()

Implementation

Map<String, String> toMap() {
  return {"role": role, "content": content};
}