toMap method
Implementation
@override
Map<String, dynamic> toMap() {
return {
...super.toMap(),
'params': {
if (from != null) 'from': from,
if (until != null) 'until': until,
if (limit != null) 'limit': limit,
if (offset != null) 'offset': offset,
'unpaid': unpaid,
if (type != null) 'type': type!.name,
}
};
}