VirtualRouterData.fromJson constructor

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

Implementation

factory VirtualRouterData.fromJson(Map<String, dynamic> json) {
  return VirtualRouterData(
    meshName: json['meshName'] as String,
    metadata:
        ResourceMetadata.fromJson(json['metadata'] as Map<String, dynamic>),
    spec: VirtualRouterSpec.fromJson(json['spec'] as Map<String, dynamic>),
    status:
        VirtualRouterStatus.fromJson(json['status'] as Map<String, dynamic>),
    virtualRouterName: json['virtualRouterName'] as String,
  );
}