create static method

ThumbnailFormat create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "thumbnailFormat",
  3. bool special_is_json_scheme_class = true,
  4. String special_return_type = "thumbnailFormat",
  5. ThumbnailFormatJpeg? thumbnail_format_jpeg,
  6. ThumbnailFormatGif? thumbnail_format_gif,
  7. ThumbnailFormatMpeg4? thumbnail_format_mpeg4,
  8. ThumbnailFormatPng? thumbnail_format_png,
  9. ThumbnailFormatTgs? thumbnail_format_tgs,
  10. ThumbnailFormatWebm? thumbnail_format_webm,
  11. ThumbnailFormatWebp? thumbnail_format_webp,
})
override

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

Implementation

static ThumbnailFormat create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "thumbnailFormat",
  bool special_is_json_scheme_class = true,
  String special_return_type = "thumbnailFormat",
  ThumbnailFormatJpeg? thumbnail_format_jpeg,
  ThumbnailFormatGif? thumbnail_format_gif,
  ThumbnailFormatMpeg4? thumbnail_format_mpeg4,
  ThumbnailFormatPng? thumbnail_format_png,
  ThumbnailFormatTgs? thumbnail_format_tgs,
  ThumbnailFormatWebm? thumbnail_format_webm,
  ThumbnailFormatWebp? thumbnail_format_webp,
}) {
  // ThumbnailFormat thumbnailFormat = ThumbnailFormat({
  final Map thumbnailFormat_data_create_json = {
    "@type": special_type,
    "@is_json_scheme_class": special_is_json_scheme_class,
    "@return_type": special_return_type,
    "thumbnail_format_jpeg": (thumbnail_format_jpeg != null) ? thumbnail_format_jpeg.toJson() : null,
    "thumbnail_format_gif": (thumbnail_format_gif != null) ? thumbnail_format_gif.toJson() : null,
    "thumbnail_format_mpeg4": (thumbnail_format_mpeg4 != null) ? thumbnail_format_mpeg4.toJson() : null,
    "thumbnail_format_png": (thumbnail_format_png != null) ? thumbnail_format_png.toJson() : null,
    "thumbnail_format_tgs": (thumbnail_format_tgs != null) ? thumbnail_format_tgs.toJson() : null,
    "thumbnail_format_webm": (thumbnail_format_webm != null) ? thumbnail_format_webm.toJson() : null,
    "thumbnail_format_webp": (thumbnail_format_webp != null) ? thumbnail_format_webp.toJson() : null,
  };

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

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