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>),
    status: json['status'] != null
        ? MeshStatus.fromJson(json['status'] as Map<String, dynamic>)
        : null,
  );
}