Files
sendico/frontend/pshared/lib/models/permissions/descriptions/role.dart
2025-11-13 15:06:15 +03:00

28 lines
593 B
Dart

import 'package:pshared/models/storable.dart';
class RoleDescription implements Storable {
final Storable storable;
@override
String get id => storable.id;
@override
DateTime get createdAt => storable.createdAt;
@override
DateTime get updatedAt => storable.updatedAt;
final String organizationRef;
const RoleDescription({
required this.storable,
required this.organizationRef,
});
factory RoleDescription.build({
required String organizationRef,
}) => RoleDescription(
storable: newStorable(),
organizationRef: organizationRef
);
}