CustomizedViewRequest.fromMap constructor

CustomizedViewRequest.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory CustomizedViewRequest.fromMap(Map<String, dynamic> json) {
  return CustomizedViewRequest(
    scanType: json['scanType'],
    additionalScanTypes: json['additionalScanTypes'] == null
        ? null
        : List<int>.from(
            json['additionalScanTypes'].map((dynamic x) => x),
          ),
    rectHeight: json['rectHeight'],
    rectWidth: json['rectWidth'],
    flashOnLightChange: json['flashOnLightChange'],
    isFlashAvailable: json['isFlashAvailable'],
    isGalleryAvailable: json['isGalleryAvailable'],
    continuouslyScan: json['continuouslyScan'],
    enableReturnBitmap: json['enableReturnBitmap'],
  );
}