InputCredentials.fromJson constructor

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

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