Map<String, dynamic> toJson() { final count = this.count; final none = this.none; return { if (count != null) 'Count': count, if (none != null) 'None': none, }; }