Response constructor

Response(
  1. String id,
  2. int requestTime, {
  3. RequestError? error,
  4. Map<String, Object?>? result,
})

Initialize a newly created instance to represent a response to a request with the given id. If result is provided, it will be used as the result; otherwise an empty result will be used. If an error is provided then the response will represent an error condition.

Implementation

Response(this.id, this.requestTime, {this.error, this.result});