MailboxesPage.fromJson constructor
Implementation
factory MailboxesPage.fromJson(Map<String, dynamic> json) {
final list = json['mailboxes'] as List<dynamic>? ?? [];
return MailboxesPage(mailboxes: list.whereType<Map<String, dynamic>>().map(Mailbox.fromJson).toList(), total: _parseInt(json['total']));
}