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