RouteSpec.fromJson constructor
RouteSpec.fromJson(
- Map<String, dynamic> json
)
Implementation
factory RouteSpec.fromJson(Map<String, dynamic> json) {
return RouteSpec(
grpcRoute: json['grpcRoute'] != null
? GrpcRoute.fromJson(json['grpcRoute'] as Map<String, dynamic>)
: null,
http2Route: json['http2Route'] != null
? HttpRoute.fromJson(json['http2Route'] as Map<String, dynamic>)
: null,
httpRoute: json['httpRoute'] != null
? HttpRoute.fromJson(json['httpRoute'] as Map<String, dynamic>)
: null,
priority: json['priority'] as int?,
tcpRoute: json['tcpRoute'] != null
? TcpRoute.fromJson(json['tcpRoute'] as Map<String, dynamic>)
: null,
);
}