23 lines
571 B
Dart
23 lines
571 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
import 'package:pshared/data/dto/storable.dart';
|
|
|
|
part 'role.g.dart';
|
|
|
|
|
|
@JsonSerializable()
|
|
class RoleDescriptionDTO extends StorableDTO {
|
|
final String organizationRef;
|
|
|
|
const RoleDescriptionDTO({
|
|
required super.id,
|
|
required super.createdAt,
|
|
required super.updatedAt,
|
|
required this.organizationRef,
|
|
});
|
|
|
|
factory RoleDescriptionDTO.fromJson(Map<String, dynamic> json) => _$RoleDescriptionDTOFromJson(json);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() => _$RoleDescriptionDTOToJson(this);
|
|
}
|