toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'type': type,
  'messageId': messageId,
  'surface': surface,
  'fileStates': fileStates.map((k, v) => MapEntry(k, v.toJson())),
  'promptCount': promptCount,
  'promptCountAtLastCommit': promptCountAtLastCommit,
  'permissionPromptCount': permissionPromptCount,
  'permissionPromptCountAtLastCommit': permissionPromptCountAtLastCommit,
  'escapeCount': escapeCount,
  'escapeCountAtLastCommit': escapeCountAtLastCommit,
};