DevAdd constructor

DevAdd({
  1. required String uuid,
  2. String? nickname,
  3. String? ip,
  4. String? username,
  5. String? password,
  6. int? type,
  7. int? port,
  8. DeviceTokenModel? deviceToken,
  9. String? extinfo,
})

Implementation

DevAdd(
    {required this.uuid,
      String? nickname,
      this.ip,
      String? username,
      this.password,
      int? type,
      int? port,
      this.deviceToken,
      this.extinfo})
    : nickname = nickname ?? uuid,
      username = username ?? "admin",
      type = type ?? 0,
      port = port ?? 34567;