create static method

FoundUsers create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "foundUsers",
  3. String special_return_type = "foundUsers",
  4. List<num>? user_ids,
  5. String? next_offset,
})
override

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

Implementation

static FoundUsers create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "foundUsers",
  String special_return_type = "foundUsers",
  List<num>? user_ids,
  String? next_offset,
}) {
  // FoundUsers foundUsers = FoundUsers({
  final Map foundUsers_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "user_ids": user_ids,
    "next_offset": next_offset,
  };

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

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