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