toJson method

Map<String, dynamic> toJson()

Converts this AuthenticateResult into a JSON-compatible map.

Returns a map with keys 'challenge' and 'signature'.

Implementation

Map<String, dynamic> toJson() {
  final map = <String, dynamic>{};
  map['challenge'] = challenge;
  map['signature'] = signature;
  return map;
}