create static method

MessageChatBoost create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "messageChatBoost",
  3. String special_return_type = "messageContent",
  4. num? boost_count,
})
override

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

Implementation

static MessageChatBoost create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "messageChatBoost",
  String special_return_type = "messageContent",
  num? boost_count,
}) {
  // MessageChatBoost messageChatBoost = MessageChatBoost({
  final Map messageChatBoost_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "boost_count": boost_count,
  };

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

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