create static method

QuickReplyMessage create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "quickReplyMessage",
  3. String special_return_type = "quickReplyMessage",
  4. num? id,
  5. MessageSendingState? sending_state,
  6. bool? can_be_edited,
  7. num? reply_to_message_id,
  8. num? via_bot_user_id,
  9. num? media_album_id,
  10. MessageContent? content,
  11. ReplyMarkup? reply_markup,
})
override

Generate By General Universe Script Dont edit by hand or anything manual

Implementation

static QuickReplyMessage create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "quickReplyMessage",
  String special_return_type = "quickReplyMessage",
  num? id,
  MessageSendingState? sending_state,
  bool? can_be_edited,
  num? reply_to_message_id,
  num? via_bot_user_id,
  num? media_album_id,
  MessageContent? content,
  ReplyMarkup? reply_markup,
}) {
  // QuickReplyMessage quickReplyMessage = QuickReplyMessage({
  final Map quickReplyMessage_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "id": id,
    "sending_state": (sending_state != null) ? sending_state.toJson() : null,
    "can_be_edited": can_be_edited,
    "reply_to_message_id": reply_to_message_id,
    "via_bot_user_id": via_bot_user_id,
    "media_album_id": media_album_id,
    "content": (content != null) ? content.toJson() : null,
    "reply_markup": (reply_markup != null) ? reply_markup.toJson() : null,
  };

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

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