create static method
PageBlockMap
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "pageBlockMap",
- String special_return_type = "pageBlock",
- Location? location,
- num? zoom,
- num? width,
- num? height,
- 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);
}