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 $15.CustomOptionFooRequest();
    default:
      throw $core.ArgumentError('Unknown method: $method');
  }
}