Some checks failed
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/chain_gateway Pipeline was successful
ci/woodpecker/push/fx_ingestor Pipeline was successful
ci/woodpecker/push/frontend Pipeline was successful
ci/woodpecker/push/fx_oracle 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
ci/woodpecker/push/bump_version Pipeline failed
31 lines
809 B
Dart
31 lines
809 B
Dart
import 'package:pshared/data/dto/account/account.dart';
|
|
import 'package:pshared/models/account/account.dart';
|
|
import 'package:pshared/models/describable.dart';
|
|
import 'package:pshared/models/storable.dart';
|
|
|
|
|
|
extension AccountMapper on Account {
|
|
AccountDTO toDTO() => AccountDTO(
|
|
id: id,
|
|
createdAt: createdAt,
|
|
updatedAt: updatedAt,
|
|
name: name,
|
|
lastName: lastName,
|
|
description: description,
|
|
avatarUrl: avatarUrl,
|
|
locale: locale,
|
|
login: login,
|
|
);
|
|
}
|
|
|
|
extension AccountDTOMapper on AccountDTO {
|
|
Account toDomain() => Account(
|
|
storable: newStorable(id: id, createdAt: createdAt, updatedAt: updatedAt),
|
|
avatarUrl: avatarUrl,
|
|
describable: newDescribable(name: name, description: description),
|
|
lastName: lastName,
|
|
locale: locale,
|
|
login: login,
|
|
);
|
|
}
|