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
40 lines
984 B
Dart
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);
|
|
}
|