toJson method
Implementation
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
if (_source != null) {
map['source'] = _source?.map((v) => v.toJson()).toList();
}
if (_subSource != null) {
map['sub_source'] = _subSource?.map((v) => v.toJson()).toList();
}
if (_budget != null) {
map['budget'] = _budget?.map((v) => v.toJson()).toList();
}
if (_priority != null) {
map['priority'] = _priority?.map((v) => v.toJson()).toList();
}
if (_area != null) {
map['area'] = _area?.map((v) => v.toJson()).toList();
}
if (_category != null) {
map['category'] = _category?.map((v) => v.toJson()).toList();
}
if (_leadType != null) {
map['lead_type'] = _leadType?.map((v) => v.toJson()).toList();
}
if (_unitType != null) {
map['unit_type'] = _unitType?.map((v) => v.toJson()).toList();
}
if (_buyType != null) {
map['unit_type'] = _buyType?.map((v) => v.toJson()).toList();
}
return map;
}