LoginUrlInfo.fromJson constructor
a LoginUrlInfo return type can be :
Implementation
factory LoginUrlInfo.fromJson(Map<String, dynamic> json) {
switch (json["@type"]) {
case LoginUrlInfoOpen.CONSTRUCTOR:
return LoginUrlInfoOpen.fromJson(json);
case LoginUrlInfoRequestConfirmation.CONSTRUCTOR:
return LoginUrlInfoRequestConfirmation.fromJson(json);
default:
return const LoginUrlInfo();
}
}