create static method

UpdateChatBoost create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "updateChatBoost",
  3. String special_return_type = "update",
  4. num? chat_id,
  5. ChatBoost? boost,
})
override

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

Implementation

static UpdateChatBoost create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "updateChatBoost",
  String special_return_type = "update",
  num? chat_id,
  ChatBoost? boost,
}) {
  // UpdateChatBoost updateChatBoost = UpdateChatBoost({
  final Map updateChatBoost_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "chat_id": chat_id,
    "boost": (boost != null) ? boost.toJson() : null,
  };

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

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