ReceivedResult.fromJson constructor

ReceivedResult.fromJson(
  1. Map<String, dynamic> json
)

Implementation

ReceivedResult.fromJson(Map<String, dynamic> json) {
  jsonrpc = json['jsonrpc'];
  id = json['id'];
  resultParams =
  json['result'] != null ? ResultParams.fromJson(json['result']) : null;
  sessId = json['sessid'];
  error = json['error'] != null
      ? TelnyxSocketError.fromJson(json['error'])
      : null;
}