create static method

InputCredentials create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "inputCredentials",
  3. bool special_is_json_scheme_class = true,
  4. String special_return_type = "inputCredentials",
  5. InputCredentialsSaved? input_credentials_saved,
  6. InputCredentialsNew? input_credentials_new,
  7. InputCredentialsApplePay? input_credentials_apple_pay,
  8. InputCredentialsGooglePay? input_credentials_google_pay,
})
override

Generate By General Universe Script Dont edit by hand or anything manual

Implementation

static InputCredentials create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "inputCredentials",
  bool special_is_json_scheme_class = true,
  String special_return_type = "inputCredentials",
  InputCredentialsSaved? input_credentials_saved,
  InputCredentialsNew? input_credentials_new,
  InputCredentialsApplePay? input_credentials_apple_pay,
  InputCredentialsGooglePay? input_credentials_google_pay,
}) {
  // InputCredentials inputCredentials = InputCredentials({
  final Map inputCredentials_data_create_json = {
    "@type": special_type,
    "@is_json_scheme_class": special_is_json_scheme_class,
    "@return_type": special_return_type,
    "input_credentials_saved": (input_credentials_saved != null) ? input_credentials_saved.toJson() : null,
    "input_credentials_new": (input_credentials_new != null) ? input_credentials_new.toJson() : null,
    "input_credentials_apple_pay": (input_credentials_apple_pay != null) ? input_credentials_apple_pay.toJson() : null,
    "input_credentials_google_pay": (input_credentials_google_pay != null) ? input_credentials_google_pay.toJson() : null,
  };

  inputCredentials_data_create_json.removeWhere((key, value) => value == null);

  if (schemeUtilsIsSetDefaultData) {
    defaultData.forEach((key, value) {
      if (inputCredentials_data_create_json.containsKey(key) == false) {
        inputCredentials_data_create_json[key] = value;
      }
    });
  }
  return InputCredentials(inputCredentials_data_create_json);
}