28 lines
593 B
Dart
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
|
|
);
|
|
}
|