create static method

UpdateNewBusinessCallbackQuery create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "updateNewBusinessCallbackQuery",
  3. String special_return_type = "update",
  4. num? id,
  5. num? sender_user_id,
  6. String? connection_id,
  7. BusinessMessage? message,
  8. num? chat_instance,
  9. CallbackQueryPayload? payload,
})
override

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

Implementation

static UpdateNewBusinessCallbackQuery create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "updateNewBusinessCallbackQuery",
  String special_return_type = "update",
  num? id,
  num? sender_user_id,
  String? connection_id,
  BusinessMessage? message,
  num? chat_instance,
  CallbackQueryPayload? payload,
}) {
  // UpdateNewBusinessCallbackQuery updateNewBusinessCallbackQuery = UpdateNewBusinessCallbackQuery({
  final Map updateNewBusinessCallbackQuery_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "id": id,
    "sender_user_id": sender_user_id,
    "connection_id": connection_id,
    "message": (message != null) ? message.toJson() : null,
    "chat_instance": chat_instance,
    "payload": (payload != null) ? payload.toJson() : null,
  };

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

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