Map<String, Object?> toJson() => { ...additional, 'kty': kty, if (crv != null) 'crv': crv, if (x != null) 'x': x, if (kid != null) 'kid': kid, };