import 'package:json_annotation/json_annotation.dart'; import 'package:pshared/data/dto/ledger/account.dart'; part 'accounts.g.dart'; @JsonSerializable(explicitToJson: true) class LedgerAccountsResponse { final List accounts; const LedgerAccountsResponse({required this.accounts}); factory LedgerAccountsResponse.fromJson(Map json) => _$LedgerAccountsResponseFromJson(json); Map toJson() => _$LedgerAccountsResponseToJson(this); }