getting spaces and rooms from api {null checks}

This commit is contained in:
Mohammad Salameh
2024-03-13 13:52:22 +03:00
parent 0f3cc453ce
commit 024f15728b
26 changed files with 390 additions and 266 deletions

View File

@ -3,7 +3,7 @@ import 'package:syncrow_app/features/devices/model/room_model.dart';
class SpaceModel {
final int? id;
final String? name;
final List<RoomModel>? rooms;
late List<RoomModel>? rooms;
SpaceModel({
required this.id,