create static method

PageBlockMap create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "pageBlockMap",
  3. String special_return_type = "pageBlock",
  4. Location? location,
  5. num? zoom,
  6. num? width,
  7. num? height,
  8. PageBlockCaption? caption,
})
override

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

Implementation

static PageBlockMap create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "pageBlockMap",
  String special_return_type = "pageBlock",
  Location? location,
  num? zoom,
  num? width,
  num? height,
  PageBlockCaption? caption,
}) {
  // PageBlockMap pageBlockMap = PageBlockMap({
  final Map pageBlockMap_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "location": (location != null) ? location.toJson() : null,
    "zoom": zoom,
    "width": width,
    "height": height,
    "caption": (caption != null) ? caption.toJson() : null,
  };

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

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