VirtualNodeData.fromJson constructor

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

Implementation

factory VirtualNodeData.fromJson(Map<String, dynamic> json) {
  return VirtualNodeData(
    meshName: json['meshName'] as String,
    virtualNodeName: json['virtualNodeName'] as String,
    metadata: json['metadata'] != null
        ? ResourceMetadata.fromJson(json['metadata'] as Map<String, dynamic>)
        : null,
    spec: json['spec'] != null
        ? VirtualNodeSpec.fromJson(json['spec'] as Map<String, dynamic>)
        : null,
    status: json['status'] != null
        ? VirtualNodeStatus.fromJson(json['status'] as Map<String, dynamic>)
        : null,
  );
}