create static method

PubspecServerUniverse create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "PubspecServerUniverse",
  3. String? name,
  4. String? repository,
  5. String? homepage,
  6. String? issue_tracker,
  7. String? documentation,
  8. List<String>? funding,
  9. PubspecServerUniverseDependencies? dependencies,
  10. PubspecServerUniverseConfiguration? server_universe,
})
override

Generated

Implementation

static PubspecServerUniverse create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "PubspecServerUniverse",
  String? name,
  String? repository,
  String? homepage,
  String? issue_tracker,
  String? documentation,
  List<String>? funding,
  PubspecServerUniverseDependencies? dependencies,
  PubspecServerUniverseConfiguration? server_universe,
}) {
  // PubspecServerUniverse pubspecServerUniverse = PubspecServerUniverse({
  final Map pubspecServerUniverse_data_create_json = {
    "@type": special_type,
    "name": name,
    "repository": repository,
    "homepage": homepage,
    "issue_tracker": issue_tracker,
    "documentation": documentation,
    "funding": funding,
    "dependencies": (dependencies != null) ? dependencies.toJson() : null,
    "server_universe":
        (server_universe != null) ? server_universe.toJson() : null,
  };

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

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