# 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["useDocumentDetector"] = useDocumentDetector;
      obj["scanningMode"] = scanningMode.name;
      obj["requireExpiryDate"] = requireExpiryDate;
      obj["requireCardholderName"] = requireCardholderName;
      obj["resultAccumulationConfig"] =
          resultAccumulationConfig.toJson(config: config);
      obj["returnCreditCardImage"] = returnCreditCardImage;
      return obj;
    }