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