import 'package:json_annotation/json_annotation.dart'; import 'package:pshared/data/dto/date_time.dart'; import 'package:pshared/data/dto/permissions/bound.dart'; part 'method.g.dart'; @JsonSerializable() class PaymentMethodDTO extends PermissionBoundDTO { final String recipientRef; final String type; final Map data; @JsonKey(defaultValue: false) final bool isArchived; const PaymentMethodDTO({ required super.id, required super.createdAt, required super.updatedAt, required super.permissionRef, required super.organizationRef, required this.recipientRef, required this.type, required this.data, this.isArchived = false, }); factory PaymentMethodDTO.fromJson(Map json) => _$PaymentMethodDTOFromJson(json); @override Map toJson() => _$PaymentMethodDTOToJson(this); }