Map<String, dynamic> toJson() => { 'kind': kind, 'credentialAssertion': credentialAssertion.toJson(), };