create static method

BlockList create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "blockList",
  3. bool special_is_json_scheme_class = true,
  4. String special_return_type = "blockList",
  5. BlockListMain? block_list_main,
  6. BlockListStories? block_list_stories,
})
override

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

Implementation

static BlockList create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "blockList",
  bool special_is_json_scheme_class = true,
  String special_return_type = "blockList",
  BlockListMain? block_list_main,
  BlockListStories? block_list_stories,
}) {
  // BlockList blockList = BlockList({
  final Map blockList_data_create_json = {
    "@type": special_type,
    "@is_json_scheme_class": special_is_json_scheme_class,
    "@return_type": special_return_type,
    "block_list_main": (block_list_main != null) ? block_list_main.toJson() : null,
    "block_list_stories": (block_list_stories != null) ? block_list_stories.toJson() : null,
  };

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

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