toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  if (filePath != null) 'file_path': filePath,
  if (content != null) 'content': content,
  'validator_type': validatorType,
};