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