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,
    routeName: json['routeName'] as String,
    virtualRouterName: json['virtualRouterName'] as String,
    metadata: json['metadata'] != null
        ? ResourceMetadata.fromJson(json['metadata'] as Map<String, dynamic>)
        : null,
    spec: json['spec'] != null
        ? RouteSpec.fromJson(json['spec'] as Map<String, dynamic>)
        : null,
    status: json['status'] != null
        ? RouteStatus.fromJson(json['status'] as Map<String, dynamic>)
        : null,
  );
}