AuthenticationCodeType.fromJson constructor
a AuthenticationCodeType return type can be :
Implementation
factory AuthenticationCodeType.fromJson(Map<String, dynamic> json) {
switch (json["@type"]) {
case AuthenticationCodeTypeTelegramMessage.CONSTRUCTOR:
return AuthenticationCodeTypeTelegramMessage.fromJson(json);
case AuthenticationCodeTypeSms.CONSTRUCTOR:
return AuthenticationCodeTypeSms.fromJson(json);
case AuthenticationCodeTypeCall.CONSTRUCTOR:
return AuthenticationCodeTypeCall.fromJson(json);
case AuthenticationCodeTypeFlashCall.CONSTRUCTOR:
return AuthenticationCodeTypeFlashCall.fromJson(json);
case AuthenticationCodeTypeMissedCall.CONSTRUCTOR:
return AuthenticationCodeTypeMissedCall.fromJson(json);
case AuthenticationCodeTypeFragment.CONSTRUCTOR:
return AuthenticationCodeTypeFragment.fromJson(json);
case AuthenticationCodeTypeFirebaseAndroid.CONSTRUCTOR:
return AuthenticationCodeTypeFirebaseAndroid.fromJson(json);
case AuthenticationCodeTypeFirebaseIos.CONSTRUCTOR:
return AuthenticationCodeTypeFirebaseIos.fromJson(json);
default:
return const AuthenticationCodeType();
}
}