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