Map<String, dynamic> toJson() { return <String, dynamic>{ if (resolved != null) r'resolved': resolved, if (total != null) r'total': total, }; }