LoginUrlInfo.fromJson constructor

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

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();
  }
}