create static method

ResendCodeReason create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "resendCodeReason",
  3. bool special_is_json_scheme_class = true,
  4. String special_return_type = "resendCodeReason",
  5. ResendCodeReasonUserRequest? resend_code_reason_user_request,
  6. ResendCodeReasonVerificationFailed? resend_code_reason_verification_failed,
})
override

Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual

Implementation

static ResendCodeReason create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "resendCodeReason",
  bool special_is_json_scheme_class = true,
  String special_return_type = "resendCodeReason",
  ResendCodeReasonUserRequest? resend_code_reason_user_request,
  ResendCodeReasonVerificationFailed? resend_code_reason_verification_failed,
}) {
  // ResendCodeReason resendCodeReason = ResendCodeReason({
  final Map resendCodeReason_data_create_json = {
    "@type": special_type,
    "@is_json_scheme_class": special_is_json_scheme_class,
    "@return_type": special_return_type,
    "resend_code_reason_user_request": (resend_code_reason_user_request != null) ? resend_code_reason_user_request.toJson() : null,
    "resend_code_reason_verification_failed": (resend_code_reason_verification_failed != null) ? resend_code_reason_verification_failed.toJson() : null,
  };

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

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