MeshData.fromJson constructor

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

Implementation

factory MeshData.fromJson(Map<String, dynamic> json) {
  return MeshData(
    meshName: json['meshName'] as String,
    metadata:
        ResourceMetadata.fromJson(json['metadata'] as Map<String, dynamic>),
    spec: MeshSpec.fromJson(json['spec'] as Map<String, dynamic>),
    status: MeshStatus.fromJson(json['status'] as Map<String, dynamic>),
  );
}