GatewayRouteData.fromJson constructor

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

Implementation

factory GatewayRouteData.fromJson(Map<String, dynamic> json) {
  return GatewayRouteData(
    gatewayRouteName: json['gatewayRouteName'] as String,
    meshName: json['meshName'] as String,
    metadata:
        ResourceMetadata.fromJson(json['metadata'] as Map<String, dynamic>),
    spec: GatewayRouteSpec.fromJson(json['spec'] as Map<String, dynamic>),
    status:
        GatewayRouteStatus.fromJson(json['status'] as Map<String, dynamic>),
    virtualGatewayName: json['virtualGatewayName'] as String,
  );
}