Map<String, dynamic> toMap() => <String, dynamic>{ "id": id, "createdAt": createdAt?.toIso8601String(), "entries": List<dynamic>.from(entries.map((UGoldWalletEntryResponse x) => x.toMap())), };