toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  if (_token != '') {
    params.insert(0, 'token:$_token');
  }
  return {
    'jsonrpc': jsonrpc,
    'id': id,
    'method': method,
    'params': params,
  };
}