fetchInbox static method

Future<List<NetmeraPushInbox>> fetchInbox(
  1. NetmeraInboxFilter inboxFilter
)

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;
  });
}