fetchInbox static method
Implementation
static Future<List<NetmeraPushInbox>> fetchInbox(NetmeraInboxFilter inboxFilter) async {
return await _platform.invokeMethod(_FETCH_INBOX, inboxFilter.toJson()).then((receivedJson) {
List<NetmeraPushInbox> inboxList = List.empty(growable: true);
receivedJson.forEach((item) {
inboxList.add(NetmeraPushInbox.fromJson(item));
});
return inboxList;
});
}