GrpcRouteDestination.fromJson constructor

GrpcRouteDestination.fromJson(
  1. Map json_
)

Implementation

GrpcRouteDestination.fromJson(core.Map json_)
    : this(
        serviceName: json_.containsKey('serviceName')
            ? json_['serviceName'] as core.String
            : null,
        weight:
            json_.containsKey('weight') ? json_['weight'] as core.int : null,
      );