BarcodeImageFormat.fromJson constructor
BarcodeImageFormat.fromJson(
- dynamic data
Creates a BarcodeImageFormat instance from a JSON representation.
Implementation
BarcodeImageFormat.fromJson(dynamic data) {
switch (data) {
case 'Png':
case 'Jpeg':
case 'Svg':
case 'Tiff':
case 'Gif':
_value = data;
break;
default:
throw Exception('Unknown enum value to decode: $data');
}
}