fetchInboxMessages static method
Future<Inbox>
fetchInboxMessages(
- String token,
- String externalUserId,
- 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()),
},
)));
}