toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'id': id,
  'topic': topic,
  if (auths != null) 'auths': auths,
  if (session != null) 'session': session!.toJson(),
  if (error != null) 'error': error!.toJson(),
  if (jsonRpcError != null) 'jsonRpcError': jsonRpcError!.toJson(),
};