create static method

PushMessageContentPoll create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "pushMessageContentPoll",
  3. String special_return_type = "pushMessageContent",
  4. String? question,
  5. bool? is_regular,
  6. bool? is_pinned,
})
override

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

Implementation

static PushMessageContentPoll create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "pushMessageContentPoll",
  String special_return_type = "pushMessageContent",
  String? question,
  bool? is_regular,
  bool? is_pinned,
}) {
  // PushMessageContentPoll pushMessageContentPoll = PushMessageContentPoll({
  final Map pushMessageContentPoll_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "question": question,
    "is_regular": is_regular,
    "is_pinned": is_pinned,
  };

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

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