# CreditCardScannerIntroImage.fromJson constructor

CreditCardScannerIntroImage.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory CreditCardScannerIntroImage.fromJson(Map<String, dynamic> json) {
      String _type = json["_type"];
      switch (_type) {
        case "CreditCardIntroOneSideImage":
          return CreditCardIntroOneSideImage.fromJson(json);
        case "CreditCardIntroTwoSidesImage":
          return CreditCardIntroTwoSidesImage.fromJson(json);
        case "CreditCardNoImage":
          return CreditCardNoImage.fromJson(json);
        case "CreditCardIntroCustomImage":
          return CreditCardIntroCustomImage.fromJson(json);
        default:
          throw ArgumentError("Invalid polymorphic type: $_type");
      }
    }