fromJson static method
Inherited by: TonConnectManifestFailed TonConnectManifestInfo TonConnectManifestInvalid TonConnectManifestPending
Implementation
static TonConnectManifest? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
switch (json['@type']) {
case TonConnectManifestFailed.constructor:
return TonConnectManifestFailed.fromJson(json);
case TonConnectManifestInfo.constructor:
return TonConnectManifestInfo.fromJson(json);
case TonConnectManifestInvalid.constructor:
return TonConnectManifestInvalid.fromJson(json);
case TonConnectManifestPending.constructor:
return TonConnectManifestPending.fromJson(json);
default:
return null;
}
}