toJson method

Map<String, Object?> toJson()

The protocol's result object.

Implementation

Map<String, Object?> toJson() => <String, Object?>{
  'content': <Object?>[for (final c in content) c.toJson()],
  'structuredContent': ?structuredContent,
  if (isError) 'isError': true,
};