create static method

CanSendMessageToUser create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "canSendMessageToUser",
  3. String special_return_type = "canSendMessageToUserResult",
  4. bool? is_tdlib_method,
  5. num? user_id,
  6. bool? only_local,
})
override

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

Implementation

static CanSendMessageToUser create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "canSendMessageToUser",
  String special_return_type = "canSendMessageToUserResult",
  bool? is_tdlib_method,
  num? user_id,
  bool? only_local,
}) {
  // CanSendMessageToUser canSendMessageToUser = CanSendMessageToUser({
  final Map canSendMessageToUser_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "is_tdlib_method": is_tdlib_method,
    "user_id": user_id,
    "only_local": only_local,
  };

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

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