Frontend first draft
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user