Response constructor
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});