RouteSpec.fromJson constructor

RouteSpec.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory RouteSpec.fromJson(Map<String, dynamic> json) {
  return RouteSpec(
    httpRoute: json['httpRoute'] != null
        ? HttpRoute.fromJson(json['httpRoute'] as Map<String, dynamic>)
        : null,
  );
}