Frontend first draft
This commit is contained in:
19
frontend/pshared/lib/data/dto/permissions/action_effect.dart
Normal file
19
frontend/pshared/lib/data/dto/permissions/action_effect.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
// data/action_effect_dto.dart
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'action_effect.g.dart';
|
||||
|
||||
|
||||
@JsonSerializable()
|
||||
class ActionEffectDTO {
|
||||
final String action;
|
||||
final String effect;
|
||||
|
||||
const ActionEffectDTO({
|
||||
required this.action,
|
||||
required this.effect,
|
||||
});
|
||||
|
||||
factory ActionEffectDTO.fromJson(Map<String, dynamic> json) => _$ActionEffectDTOFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$ActionEffectDTOToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user