toJson method
Creates a json from the object
Implementation
Map toJson() {
return {
'position': position,
'user': user,
'score': score,
}..removeWhere((_, v) => v == null);
}
Creates a json from the object
Map toJson() {
return {
'position': position,
'user': user,
'score': score,
}..removeWhere((_, v) => v == null);
}