create static method

GeneralFrameworkDocumentation create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "generalFrameworkDocumentation",
  3. String? title,
  4. String? description,
  5. String? content,
  6. List<String>? author_url_social_medias,
  7. List<GeneralFrameworkDocumentationDocumentation>? documentations,
  8. GeneralFrameworkDocumentationFooter? footer,
})
override

Generated

Implementation

static GeneralFrameworkDocumentation create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "generalFrameworkDocumentation",
  String? logo,
  String? title,
  String? description,
  String? content,
  List<String>? author_url_social_medias,
  List<GeneralFrameworkDocumentationDocumentation>? documentations,
  GeneralFrameworkDocumentationFooter? footer,
}) {
  // GeneralFrameworkDocumentation generalFrameworkDocumentation = GeneralFrameworkDocumentation({
  final Map generalFrameworkDocumentation_data_create_json = {
    "@type": special_type,
    "logo": logo,
    "title": title,
    "description": description,
    "content": content,
    "author_url_social_medias": author_url_social_medias,
    "documentations":
        (documentations != null) ? documentations.toJson() : null,
    "footer": (footer != null) ? footer.toJson() : null,
  };

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

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