fromJson static method

TonWalletOwnershipProof? fromJson(
  1. Map<String, dynamic>? json
)

Implementation

static TonWalletOwnershipProof? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return TonWalletOwnershipProof(
    publicKey: (json['public_key'] as String?) ?? '',
    timestamp: (json['timestamp'] as int?) ?? 0,
    signature: (json['signature'] as String?) ?? '',
  );
}