Files
sendico/frontend/pshared/lib/data/dto/recipient/recipient.dart
Stephan D bf85ca062c
All checks were successful
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/chain_gateway Pipeline was successful
ci/woodpecker/push/fx_ingestor Pipeline was successful
ci/woodpecker/push/fx_oracle Pipeline was successful
ci/woodpecker/push/frontend Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
ci/woodpecker/push/ledger Pipeline was successful
ci/woodpecker/push/notification Pipeline was successful
ci/woodpecker/push/payments_orchestrator Pipeline was successful
restucturization of recipients payment methods
2025-12-04 14:42:25 +01:00

40 lines
984 B
Dart

import 'package:json_annotation/json_annotation.dart';
import 'package:pshared/data/dto/date_time.dart';
import 'package:pshared/data/dto/permissions/bound.dart';
part 'recipient.g.dart';
@JsonSerializable()
class RecipientDTO extends PermissionBoundDTO {
final String name;
final String? description;
final String email;
final String? avatarUrl;
final String status;
final String type;
@JsonKey(defaultValue: false)
final bool isArchived;
const RecipientDTO({
required super.id,
required super.createdAt,
required super.updatedAt,
required super.permissionRef,
required super.organizationRef,
required this.name,
required this.email,
required this.status,
required this.type,
this.description,
this.avatarUrl,
this.isArchived = false,
});
factory RecipientDTO.fromJson(Map<String, dynamic> json) => _$RecipientDTOFromJson(json);
@override
Map<String, dynamic> toJson() => _$RecipientDTOToJson(this);
}