BarkoderResult.fromJsonString constructor
BarkoderResult.fromJsonString(- String jsonString
)
Implementation
BarkoderResult.fromJsonString(String jsonString) {
Map<String, dynamic> resultMap = json.decode(jsonString);
barcodeType = BarcodeType.values[resultMap['barcodeType']];
barcodeTypeName = resultMap['barcodeTypeName'];
binaryDataAsBase64 = resultMap['binaryDataAsBase64'];
textualData = resultMap['textualData'];
characterSet = resultMap['characterSet'];
if (resultMap.containsKey('extra')) extra = json.decode(resultMap['extra']);
resultImageAsBase64 = resultMap['resultImageAsBase64'];
resultThumbnailAsBase64 = resultMap['resultThumbnailAsBase64'];
}