create static method

PageBlockAnimation create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "pageBlockAnimation",
  3. String special_return_type = "pageBlock",
  4. Animation? animation,
  5. PageBlockCaption? caption,
  6. bool? need_autoplay,
})
override

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

Implementation

static PageBlockAnimation create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "pageBlockAnimation",
  String special_return_type = "pageBlock",
  Animation? animation,
  PageBlockCaption? caption,
  bool? need_autoplay,
}) {
  // PageBlockAnimation pageBlockAnimation = PageBlockAnimation({
  final Map pageBlockAnimation_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "animation": (animation != null) ? animation.toJson() : null,
    "caption": (caption != null) ? caption.toJson() : null,
    "need_autoplay": need_autoplay,
  };

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

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