BarcodeFormatTwoDConfigurationBase.fromJson constructor
BarcodeFormatTwoDConfigurationBase.fromJson(
- Map<String, dynamic> json
)
Implementation
factory BarcodeFormatTwoDConfigurationBase.fromJson(
Map<String, dynamic> json) {
String _type = json["_type"];
switch (_type) {
case "BarcodeFormatAztecConfiguration":
return BarcodeFormatAztecConfiguration.fromJson(json);
case "BarcodeFormatQRCodeConfiguration":
return BarcodeFormatQrCodeConfiguration.fromJson(json);
case "BarcodeFormatPDF417Configuration":
return BarcodeFormatPdf417Configuration.fromJson(json);
case "BarcodeFormatMicroPDF417Configuration":
return BarcodeFormatMicroPdf417Configuration.fromJson(json);
case "BarcodeFormatDataMatrixConfiguration":
return BarcodeFormatDataMatrixConfiguration.fromJson(json);
case "BarcodeFormatMaxiCodeConfiguration":
return BarcodeFormatMaxiCodeConfiguration.fromJson(json);
default:
throw ArgumentError("Invalid polymorphic type: $_type");
}
}