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