getMessage method

Future<GetMessageResponse> getMessage (
  1. String messageId
)

Get a message by id

Implementation

Future<GetMessageResponse> getMessage(String messageId) async {
  final response = await get('/messages/$messageId');
  return decode(response.data, GetMessageResponse.fromJson);
}