channelOptionsFromJson function
Implementation
ChannelCredentials channelOptionsFromJson(String value) {
if (value == _CHANNEL_CREDENTIAL_INSECURE) {
return ChannelCredentials.insecure();
}
return ChannelCredentials.secure();
}
ChannelCredentials channelOptionsFromJson(String value) {
if (value == _CHANNEL_CREDENTIAL_INSECURE) {
return ChannelCredentials.insecure();
}
return ChannelCredentials.secure();
}