toJson method
Implementation
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
if (_investType != null) {
map['invest_type'] = _investType?.map((v) => v.toJson()).toList();
}
if (_investTime != null) {
map['invest_time'] = _investTime?.map((v) => v.toJson()).toList();
}
return map;
}