FirebaseAuthenticationSettings.fromJson constructor

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

a FirebaseAuthenticationSettings return type can be :

Implementation

factory FirebaseAuthenticationSettings.fromJson(Map<String, dynamic> json) {
  switch (json["@type"]) {
    case FirebaseAuthenticationSettingsAndroid.CONSTRUCTOR:
      return FirebaseAuthenticationSettingsAndroid.fromJson(json);
    case FirebaseAuthenticationSettingsIos.CONSTRUCTOR:
      return FirebaseAuthenticationSettingsIos.fromJson(json);
    default:
      return const FirebaseAuthenticationSettings();
  }
}