Frontend first draft
This commit is contained in:
18
frontend/pshared/lib/api/requests/change_role.dart
Normal file
18
frontend/pshared/lib/api/requests/change_role.dart
Normal file
@@ -0,0 +1,18 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'change_role.g.dart';
|
||||
|
||||
|
||||
@JsonSerializable(explicitToJson: true)
|
||||
class ChangeRole {
|
||||
final String accountRef;
|
||||
final String newRoleDescriptionRef;
|
||||
|
||||
const ChangeRole({
|
||||
required this.accountRef,
|
||||
required this.newRoleDescriptionRef,
|
||||
});
|
||||
|
||||
factory ChangeRole.fromJson(Map<String, dynamic> json) => _$ChangeRoleFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$ChangeRoleToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user