channelOptionsFromJson function

ChannelCredentials channelOptionsFromJson(
  1. String value
)

Implementation

ChannelCredentials channelOptionsFromJson(String value) {
  if (value == _channelCredentialInsecure) {
    return ChannelCredentials.insecure();
  }
  return ChannelCredentials.secure();
}