create static method

EditChatInviteLink create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "editChatInviteLink",
  3. String special_return_type = "chatInviteLink",
  4. bool? is_tdlib_method,
  5. num? chat_id,
  6. String? invite_link,
  7. String? name,
  8. num? expiration_date,
  9. num? member_limit,
  10. bool? creates_join_request,
})
override

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

Implementation

static EditChatInviteLink create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "editChatInviteLink",
  String special_return_type = "chatInviteLink",
  bool? is_tdlib_method,
  num? chat_id,
  String? invite_link,
  String? name,
  num? expiration_date,
  num? member_limit,
  bool? creates_join_request,
}) {
  // EditChatInviteLink editChatInviteLink = EditChatInviteLink({
  final Map editChatInviteLink_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "is_tdlib_method": is_tdlib_method,
    "chat_id": chat_id,
    "invite_link": invite_link,
    "name": name,
    "expiration_date": expiration_date,
    "member_limit": member_limit,
    "creates_join_request": creates_join_request,
  };

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

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