# toJson method

Map<String, dynamic> toJson({

1. ToJsonConfiguration? config,

})

## Implementation

    Map<String, dynamic> toJson({ToJsonConfiguration? config}) {
      config = config ?? ToJsonConfiguration();
      Map<String, dynamic> obj = <String, dynamic>{};
      obj["detectionStatus"] = detectionStatus.name;
      obj["scanningStatus"] = scanningStatus.name;
      obj["creditCard"] =
          (creditCard != null ? creditCard!.toJson(config: config) : null);
      obj["quad"] = quad.map((it) => {"x": it.x, "y": it.y}).toList();
      obj["quadNormalized"] =
          quadNormalized.map((it) => {"x": it.x, "y": it.y}).toList();
      return obj;
    }