GrpcRoute.fromJson constructor
GrpcRoute.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GrpcRoute.fromJson(Map<String, dynamic> json) {
return GrpcRoute(
action: GrpcRouteAction.fromJson(json['action'] as Map<String, dynamic>),
match: GrpcRouteMatch.fromJson(json['match'] as Map<String, dynamic>),
retryPolicy: json['retryPolicy'] != null
? GrpcRetryPolicy.fromJson(
json['retryPolicy'] as Map<String, dynamic>)
: null,
timeout: json['timeout'] != null
? GrpcTimeout.fromJson(json['timeout'] as Map<String, dynamic>)
: null,
);
}