toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
if (userId != null) {
_json[r'user_id'] = userId;
}
if (category != null) {
_json[r'category'] = category;
}
if (name != null) {
_json[r'name'] = name;
}
if (value != null) {
_json[r'value'] = value;
}
return _json;
}