create static method

FoundWebApp create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "foundWebApp",
  3. String special_return_type = "foundWebApp",
  4. WebApp? web_app,
  5. bool? request_write_access,
  6. bool? skip_confirmation,
})
override

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

Implementation

static FoundWebApp create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "foundWebApp",
  String special_return_type = "foundWebApp",
  WebApp? web_app,
  bool? request_write_access,
  bool? skip_confirmation,
}) {
  // FoundWebApp foundWebApp = FoundWebApp({
  final Map foundWebApp_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "web_app": (web_app != null) ? web_app.toJson() : null,
    "request_write_access": request_write_access,
    "skip_confirmation": skip_confirmation,
  };

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

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