GRPCConfig.fromJson constructor

GRPCConfig.fromJson(
  1. Object? json
)

Implementation

factory GRPCConfig.fromJson(Object? json) {
  final map = asJsonMap(json, 'grpc settings');
  return GRPCConfig(
    authority: map['authority'] as String?,
    serviceName: map['serviceName'] as String?,
    multiMode: map['multiMode'] as bool?,
    idleTimeout: map['idle_timeout'] as int?,
    healthCheckTimeout: map['health_check_timeout'] as int?,
    permitWithoutStream: map['permit_without_stream'] as bool?,
    initialWindowsSize: map['initial_windows_size'] as int?,
    userAgent: map['user_agent'] as String?,
  );
}