toJson method Null safety

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return createNonNullMap(<String, dynamic>{
    'path': path,
    'start_line': startLine,
    'end_line': endLine,
    'start_column': startColumn,
    'end_column': endColumn,
    'annotation_level': annotationLevel.toString(),
    'message': message,
    'title': title,
    'rax_details': rawDetails,
  });
}