fetchInboxMessages static method

Future<Inbox> fetchInboxMessages(
  1. String token,
  2. String externalUserId,
  3. FilterOptions filterOptions
)

Fetches messages from Inbox. Requires token, externalUserId, and filterOptions. Example:

var inbox = await fetchInboxMessages('jwtToken', 'yourId', FilterOptions());

Implementation

static Future<Inbox> fetchInboxMessages(
    String token, String externalUserId, FilterOptions filterOptions) async {
  return Inbox.fromJson(jsonDecode(await _channel.invokeMethod(
    'fetchInboxMessages',
    {
      'token': token,
      'externalUserId': externalUserId,
      'filterOptions': jsonEncode(filterOptions.toJson()),
    },
  )));
}