+ public static TemplateWithAccounts from(TemplateWithAccounts o) {
+ TemplateWithAccounts result = new TemplateWithAccounts();
+ result.header = new TemplateHeader(o.header);
+ result.accounts = new ArrayList<>();
+ for (TemplateAccount acc : o.accounts) {
+ result.accounts.add(new TemplateAccount(acc));
+ }
+
+ return result;
+ }