HttpRoute.fromJson constructor

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

Implementation

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