create static method

InlineKeyboard create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "inlineKeyboard",
  3. String? url,
})
override

Generated

Implementation

static InlineKeyboard create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "inlineKeyboard",
  String? url,
}) {
  // InlineKeyboard inlineKeyboard = InlineKeyboard({
  final Map inlineKeyboard_data_create_json = {
    "@type": special_type,
    "url": url,
  };

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

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