fromJson

Parses a JSON string into a Sep45ChallengeResponse.

This method handles both snake_case and camelCase field names for compatibility with different server implementations:

  • authorization_entries or authorizationEntries

  • network_passphrase or networkPassphrase

Return

Parsed Sep45ChallengeResponse

Parameters

jsonString

The JSON response string from the server

Throws

SerializationException

if the JSON is malformed