mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 11:39:21 +03:00
merge all Model JSON @Object parsers into a reviveFromJson()
This commit is contained in:
parent
76648f04ae
commit
15e07a73e9
18 changed files with 378 additions and 411 deletions
|
|
@ -12,7 +12,7 @@ export class EmailCollectionModel extends AbstractCollectionModel
|
|||
static reviveFromJson(items) {
|
||||
let result = new EmailCollectionModel;
|
||||
Array.isArray(items) && items.forEach(email => {
|
||||
email = EmailModel.newInstanceFromJson(email);
|
||||
email = EmailModel.reviveFromJson(email);
|
||||
email && result.push(email);
|
||||
});
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue