toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'conditional'] = conditional.toJson();
json[r'fieldName'] = fieldName;
if (values.isNotEmpty) {
json[r'values'] = ((v) => v.map((v) => v).toList())(values);
}
json[r'type'] = type.toJson();
return json;
}