toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var column = this.column;
  var expression = this.expression;
  var line = this.line;
  var message = this.message;
  var type = this.type;

  final json = <String, Object?>{};
  if (column != null) {
    json[r'column'] = column;
  }
  if (expression != null) {
    json[r'expression'] = expression;
  }
  if (line != null) {
    json[r'line'] = line;
  }
  json[r'message'] = message;
  json[r'type'] = type.value;
  return json;
}