class Group { Group({ this.id, required this.groupName, this.isDefault = false, this.isActive = true, this.isDeleted = false, this.note, this.createdAt, this.updatedAt, }); final int? id; final String groupName; final bool isDefault; final bool isActive; final bool isDeleted; final String? note; final DateTime? createdAt; final DateTime? updatedAt; Group copyWith({ int? id, String? groupName, bool? isDefault, bool? isActive, bool? isDeleted, String? note, DateTime? createdAt, DateTime? updatedAt, }) { return Group( id: id ?? this.id, groupName: groupName ?? this.groupName, isDefault: isDefault ?? this.isDefault, isActive: isActive ?? this.isActive, isDeleted: isDeleted ?? this.isDeleted, note: note ?? this.note, createdAt: createdAt ?? this.createdAt, updatedAt: updatedAt ?? this.updatedAt, ); } }