channelCredentialsToJson function

Object channelCredentialsToJson(
  1. ChannelCredentials credentials
)

Implementation

Object channelCredentialsToJson(ChannelCredentials credentials) {
  if (credentials.isSecure) {
    return _channelCredentialSecure;
  }
  return _channelCredentialInsecure;
}