toMap property

Map<String, dynamic> get toMap

Implementation

Map<String, dynamic> get toMap => {
      'type': barcodeType.name,
      if (minLength != null) 'minLength': minLength!,
      if (maxLength != null) 'maxLength': maxLength!,
    };