toJson method

Map<String, String> toJson()

Implementation

Map<String, String> toJson() => {
  'role': role,
  'content': content,
};