createRequest method

GeneratedMessage createRequest(
  1. String method
)
override

Creates a message object that can deserialize a request.

Implementation

$pb.GeneratedMessage createRequest($core.String method) {
  switch (method) {
    case 'Foo':
      return $8.FooRequest();
    case 'Bar':
      return $8.BarRequest();
    default:
      throw $core.ArgumentError('Unknown method: $method');
  }
}