AuthorizationState.fromJson constructor
Parses whichever AuthorizationState subtype the JSON describes.
Implementation
factory AuthorizationState.fromJson(Map<String, dynamic> json) {
final object = tdObjectFactories[json['@type']]?.call(json);
return object is AuthorizationState
? object
: UndecodedAuthorizationState(json);
}