create static method

PushMessageContentVideo create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "pushMessageContentVideo",
  3. String special_return_type = "pushMessageContent",
  4. Video? video,
  5. String? caption,
  6. bool? is_secret,
  7. bool? is_pinned,
})
override

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

Implementation

static PushMessageContentVideo create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "pushMessageContentVideo",
  String special_return_type = "pushMessageContent",
  Video? video,
  String? caption,
  bool? is_secret,
  bool? is_pinned,
}) {
  // PushMessageContentVideo pushMessageContentVideo = PushMessageContentVideo({
  final Map pushMessageContentVideo_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "video": (video != null) ? video.toJson() : null,
    "caption": caption,
    "is_secret": is_secret,
    "is_pinned": is_pinned,
  };

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

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