fromJson static method
Implementation
static TonConnectConnectData? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return TonConnectConnectData(
sessionId: (json['session_id'] is int
? json['session_id'] as int
: int.tryParse(json['session_id']?.toString() ?? '')) ??
0,
challengeAnswer: (json['challenge_answer'] as String?) ?? '',
body: (json['body'] as String?) ?? '',
proof: TonWalletOwnershipProof.fromJson(
json['proof'] as Map<String, dynamic>?)!,
);
}