BarcodeConfig.fromMap constructor

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

Implementation

factory BarcodeConfig.fromMap(Map<String, dynamic> map) {
  return BarcodeConfig(
    barcodeType: BarcodeTypes.values.firstWhere((e) => e.name == map['type']),
    minLength: map['minLength'],
    maxLength: map['maxLength'],
  );
}