ListMessagesResponse constructor

ListMessagesResponse({
  1. Iterable<Message>? messages,
  2. String? nextPageToken,
})

Implementation

factory ListMessagesResponse({
  $core.Iterable<$10.Message>? messages,
  $core.String? nextPageToken,
}) {
  final _result = create();
  if (messages != null) {
    _result.messages.addAll(messages);
  }
  if (nextPageToken != null) {
    _result.nextPageToken = nextPageToken;
  }
  return _result;
}