VinScannerIntroImage.fromJson constructor
VinScannerIntroImage.fromJson( - Map<String, dynamic> json
)
Implementation
factory VinScannerIntroImage.fromJson(Map<String, dynamic> json) {
String _type = json["_type"];
switch (_type) {
case "VINIntroDefaultImage":
return VinIntroDefaultImage.fromJson(json);
case "VINIntroNoImage":
return VinIntroNoImage.fromJson(json);
case "VINIntroCustomImage":
return VinIntroCustomImage.fromJson(json);
default:
throw ArgumentError("Invalid polymorphic type: $_type");
}
}