JsonRpcError.fromJson constructor

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

Implementation

factory JsonRpcError.fromJson(Map<String, dynamic> json) => JsonRpcError(
      id: json['id'] as int,
      jsonrpc: json['jsonrpc'] as String,
      error: json['error'] == null
          ? null
          : ErrorResponse.fromJson(json['error'] as Map<String, dynamic>),
    );