toJson method

Map<String, Object?> toJson()

Serializes to the shape the hosted page's credentials query param expects. The provider discriminator is fixed: Persona is the only provider this SDK and the hosted page accept.

Implementation

Map<String, Object?> toJson() {
  return <String, Object?>{
    'provider': _provider,
    'inquiryId': inquiryId,
    if (sessionToken != null) 'sessionToken': sessionToken,
  };
}