ServiceExtensionResponse.result constructor

ServiceExtensionResponse.result(
  1. String result
)

Creates a successful response to a service protocol extension RPC.

Requires result to be a JSON object encoded as a string. When forming the JSON-RPC message result will be inlined directly.

Implementation

ServiceExtensionResponse.result(String result)
    : result = result,
      errorCode = null,
      errorDetail = null {
  // TODO: When NNBD is complete, delete the following line.
  checkNotNullable(result, "result");
}