getMessageById method

Future<CourierGetInboxMessageResponse> getMessageById({
  1. required String messageId,
})

Implementation

Future<CourierGetInboxMessageResponse> getMessageById({required String messageId}) async {
  final data = await _options.invokeClient('inbox.get_message_by_id', {
    'messageId': messageId,
  });
  final Map<String, dynamic> map = json.decode(data);
  return CourierGetInboxMessageResponse.fromJson(map);
}