UpcaDecoder.fromMap constructor

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

Implementation

factory UpcaDecoder.fromMap(Map<String, dynamic> map) => UpcaDecoder(
      enabled: map['enabled'] as bool?,
      reportCheckDigit: map['reportCheckDigit'] as bool?,
      preamble: map['preamble'] != null
          ? Preamble.fromValue(map['preamble'] as String)
          : null,
    );