create static method

UpdateNewInlineQuery create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "updateNewInlineQuery",
  3. String special_return_type = "update",
  4. num? id,
  5. num? sender_user_id,
  6. Location? user_location,
  7. ChatType? chat_type,
  8. String? query,
  9. String? offset,
})
override

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

Implementation

static UpdateNewInlineQuery create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "updateNewInlineQuery",
  String special_return_type = "update",
  num? id,
  num? sender_user_id,
  Location? user_location,
  ChatType? chat_type,
  String? query,
  String? offset,
}) {
  // UpdateNewInlineQuery updateNewInlineQuery = UpdateNewInlineQuery({
  final Map updateNewInlineQuery_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "id": id,
    "sender_user_id": sender_user_id,
    "user_location": (user_location != null) ? user_location.toJson() : null,
    "chat_type": (chat_type != null) ? chat_type.toJson() : null,
    "query": query,
    "offset": offset,
  };

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

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