ScanFeedbackConfig.fromJson constructor

ScanFeedbackConfig.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ScanFeedbackConfig.fromJson(Map<String, dynamic> json) => ScanFeedbackConfig(
    animation: scanFeedbackConfigAnimationValues.map[json["animation"]],
    animationDuration: json["animationDuration"],
    beepOnResult: json["beepOnResult"],
    blinkAnimationOnResult: json["blinkAnimationOnResult"],
    cornerRadius: json["cornerRadius"],
    fillColor: json["fillColor"],
    redrawTimeout: json["redrawTimeout"],
    strokeColor: json["strokeColor"],
    strokeWidth: json["strokeWidth"],
    style: styleValues.map[json["style"]],
    vibrateOnResult: json["vibrateOnResult"],
);