RouteData.fromJson constructor

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

Implementation

factory RouteData.fromJson(Map<String, dynamic> json) {
  return RouteData(
    meshName: json['meshName'] as String,
    metadata:
        ResourceMetadata.fromJson(json['metadata'] as Map<String, dynamic>),
    routeName: json['routeName'] as String,
    spec: RouteSpec.fromJson(json['spec'] as Map<String, dynamic>),
    status: RouteStatus.fromJson(json['status'] as Map<String, dynamic>),
    virtualRouterName: json['virtualRouterName'] as String,
  );
}