toJson method
Implementation
Map toJson() {
return {
'text': text,
'voter_count': voterCount,
}..removeWhere((_, v) => v == null);
}
Map toJson() {
return {
'text': text,
'voter_count': voterCount,
}..removeWhere((_, v) => v == null);
}