FamocoDecodedResult.fromMap constructor

FamocoDecodedResult.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory FamocoDecodedResult.fromMap(Map<String, dynamic> map) {
  return FamocoDecodedResult(
    length: map['length'] as int,
    barcode: map['barcode'] != null ? map['barcode'] as String : null,
    data: map['data'] != null
        ? Uint32List.fromList(map['data'] as List<int>)
        : null,
    symbology: map['symbology'] as int,
  );
}