@override Object toJson() { return { if (key.isNotDefault) 'key': key, if (value.isNotDefault) 'value': value, }; }